<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 4, 2015 at 11:20 AM, William H. Magill <span dir="ltr"><<a href="mailto:magill@mac.com" target="_blank">magill@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> BIND9 at least comes with a local zone definition that includes "localhost." as a name, with the usual mapping. That said, people *usually* get it from /etc/hosts... *but* OS X is a little weird in how/when it uses the hosts file.<br>
<br>
</span>If one believes the contents of /etc/hosts -- OSX only consults it at boot time.<br></blockquote></div><br>That comment is an approximation of the truth. But, while BSD API stuff follows similar rules to other Unixes (checks hosts first then the name service --- but since the name service isn't up yet at boot time, it only uses the hosts file), Cocoa API doesn't appear to do so. (I admit to not knowing exactly what that API does, just that it seems to be different.)<br><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>