<p>If I'm not mistaken, the hosts line in your nsswitch.conf file tells glibc to query the /etc/hosts file and then mDNS, but if it doesnt find the host name in mDNS [NOTFOUND=return] tells it to immediately give up before it can check standard DNS. As a result, any changes you make to /etc/resolv.conf will never be used.</p>
<p>You may want to adjust that line a bit to something like this:</p>
<p> hosts: files dns mdns4_minimal mdns4</p>
<p>Really, all three systems (files, dns, mdns) for resolving names are equally authoritative, so forcing one to return and stop the lookup through the chain is not helpful. This may be why your system isn't getting valid responses.</p>
<p>I am, however, unsure as to what the differences are between mdns4_minimal and mdns4 so the order of those two may need to be adjusted. Personally, unless I have a /really/ good reason to use mDNS, I typically remove it altogether -- but then, I don't like avahi and its ilk anyway, so take that with a huge grain of salt.</p>
<p><blockquote type="cite">On Sep 2, 2010 6:28 AM, "Jason Friedman" <<a href="mailto:jason@powerpull.net">jason@powerpull.net</a>> wrote:<br><br><p><font color="#500050">> Jason Friedman wrote:<br>>> $ dig <a href="http://www.google.com">www.google.com</a><br>
>> <snip><br>>> <a href="http://www.google.com">www.google.com</a>. 603906 I...</font></p>$ grep -v '^#' /etc/resolv.conf<br>
domain domain.actdsltmp<br>
search domain.actdsltmp<br>
nameserver 192.168.0.1<br>
nameserver 205.171.2.65<br>
<br>
$ grep -v '^#' /etc/nsswitch.conf<br>
passwd: compat<br>
group: compat<br>
shadow: compat<br>
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4<br>
networks: files<br>
protocols: db files<br>
services: db files<br>
ethers: db files<br>
rpc: db files<br>
netgroup: nis<br>
<br>
I changed to a different ethernet card (eth1) and that has seemed to<br>
help, though I cannot reach certain sites (timeouts). I will comment<br>
out "nameserver 192.168.0.1" and try eth2 again.<br>
<p><font color="#500050">_______________________________________________<br>clue-tech mailing list<br><a href="mailto:clue-tech@cluedenver.org">clue-tech@cluedenver.org</a><br>http...</font></p></blockquote></p>