On 26 Apr, 17:48, Jack Snodgrass <jacks_temp_id_blu...@verizon.net>
wrote:
> On Sat, 26 Apr 2008 08:37:27 -0700, CCW wrote:
> > Thanks for the replies.
>
> > My /etc/resolv.conf is:
>
> > ; generated by /sbin/dhclient-script
> > nameserver 208.67.222.222
> > nameserver 208.67.220.220
>
> > They are the IP addresses of Open DNS (http://www.opendns.com/).
>
> > Running
> > %> hostwww.yahoo.com208.67.222.222
>
> > gives:
>
> > Using domain server:
> > Name: 208.67.222.222
> > Address: 208.67.222.222#53
> > Aliases:
>
> >www.yahoo.comis an alias forwww.yahoo-ht3.akadns.net
> >www.yahoo-ht3.akadns.nethas address 87.248.113.14
>
> > I get a similar response from 208.67.220.220
>
> > Does this provide any more info?
>
> > Thanks,
> > Chris
>
> ... that all looks right... you said in the original message:
>
> "I can access websites / ping by ip address but not by name."
> ... and it's not a /etc/resolv.conf issue.. then it's a strange one...
>
> What happens when you do:
> hostwww.yahoo.com
> and not specify a name server.... in theory... it should pick one from
> your /etc/resolv.conf file if it's reading it.
>
> maybe your config is really screwed up and your not looking at your
> /etc/resolv.conf file... do this:
> cat /etc/nsswitch.conf | grep hosts | grep -v "#"
> and see what you get. I get:
> cat /etc/nsswitch.conf | grep hosts | grep -v "#"
> hosts: files dns
> which says to look in the /etc/hosts file and then do a dns lookup
> if it's not found... what does your config show for that?
For this I get
$> cat /etc/nsswitch.conf | grep hosts | grep -v "#"
hosts: files wins
If this isn't what I should have, I do I change it back?!
Chris