According to the man page,
host ought to query "the server or servers listed in
/etc/resolv.conf," but it only uses the first entry in that file:
thefourthtower:$cat /etc/resolv.conf nameserver 22.214.171.124 nameserver 126.96.36.199 nameserver 192.168.1.254 domain gateway.2wire.net search gateway.2wire.net thefourthtower:$host thefourthtower Host thefourthtower not found: 3(NXDOMAIN) thefourthtower:$host thefourthtower 188.8.131.52 thefourthtower.gateway.2wire.net has address 192.168.1.74
2wire bit comes from a 2Wire modem/router. AT&T (or 2Wire?) have equipped the thing with very poor firmware and its DNS server (cache) is generally slower than Google Public DNS, a problem compounded by AT&T's own flaky DNS servers (no option for alternate servers).
Can I get
nslookup to use further
/etc/resolv.conf entries (and avoid specifying servers manually)?
Or is the only solution to manually map hosts in
/etc/hosts, given the desired ordering of the
Nothing in the above implies that I think Google's nameserver should know about my local hosts.
I am asking: can one use a certain nameserver for local names only (since a name like 'thefourthtower' must be local)?
It looks like the answer is NO, and I must run a nameserver on my machine, because the extant local nameserver is so poor.