A question about Localhost with Safari

Brandon Allbery allbery.b at gmail.com
Sun Jan 4 08:24:34 PST 2015


On Sun, Jan 4, 2015 at 11:20 AM, William H. Magill <magill at mac.com> wrote:

> > 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.
>
> If one believes the contents of /etc/hosts -- OSX only consults it at boot
> time.
>

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.)

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150104/4f22e9bd/attachment.html>


More information about the macports-users mailing list