To modify how hosts are searched for (ie, look in NetInfo before DNS), see the manpage for lookupd; basically,
- create a file, /etc/lookupd/hosts and add the line,
LookupOrder CacheAgent NIAgent DNSAgent NILAgent
- then HUP lookupd (kill -1 `cat /var/run/lookupd.pid`)
To verify,
- run lookupd -d and enter 'configuration' at the '>' prompt. Among other entries, there should be
Dictionary: "Host Configuration"
LookupOrder: CacheAgent NIAgent DNSAgent NILAgent
_config_name: Host Configuration
Before doing this, it looks like,
Dictionary: "Host Configuration"
LookupOrder: CacheAgent DNSAgent NIAgent
_config_name: Host Configuration
One strange thing is lookupd complains about a configuration failure (both on stdout from lookupd -d and in /var/log/netinfo.log when restarting lookupd) but it obviously takes the change.
- create a file, /etc/lookupd/hosts and add the line,
LookupOrder CacheAgent NIAgent DNSAgent NILAgent
- then HUP lookupd (kill -1 `cat /var/run/lookupd.pid`)
To verify,
- run lookupd -d and enter 'configuration' at the '>' prompt. Among other entries, there should be
Dictionary: "Host Configuration"
LookupOrder: CacheAgent NIAgent DNSAgent NILAgent
_config_name: Host Configuration
Before doing this, it looks like,
Dictionary: "Host Configuration"
LookupOrder: CacheAgent DNSAgent NIAgent
_config_name: Host Configuration
One strange thing is lookupd complains about a configuration failure (both on stdout from lookupd -d and in /var/log/netinfo.log when restarting lookupd) but it obviously takes the change.