Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Default lookup order' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Default lookup order
Authored by: gatorparrots on May 27, '04 03:00:55AM
The comments within the /etc/hosts file are more than likely incorrect and have been since 10.2. They should largely be ignored, but I suppose it's all in how you installed your operating system. If yours is an upgrade installation, you may not have the same lookup order as those who have done cleans installs of Panther or Jaguar.

To check your current lookup order, simply execute this command:

lookupd -configuration
By default under Panther, the lookup order is as follows:
LookupOrder: Cache FF DNS NI DS
_config_name: Host Configuration
So, flat files (FF) are searched before DNS, meaning that by default the /etc/hosts file should be consulted before name-to-IP-address resolution is ever attempted.

These articles do a good job showing the default lookup orders of 10.1, 10.2, and 10.3:
http://www.macwrite.com/criticalmass/%20mac-os-x-hosts-panther-pf.php
http://www.macwrite.com/criticalmass/mac-os-x-hosts-regrouped.php
(Really, they should be prerequisite reading before attempting to change the lookup order or mess with the hosts file.)

[ Reply to This | # ]

Default lookup order
Authored by: ether on May 27, '04 01:39:22PM

My machine has run through the upgrade sequence from 10.1--10.3.3.
The config info is:

LookupOrder: CacheAgent NIAgent DNSAgent NILAgent
_config_name: Host Configuration
name: hosts

so I guess whether it works _does_ depend on whether you've
done a clean install or not.



[ Reply to This | # ]