Re: Internet connection on Linux



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
%> host www.yahoo.com 208.67.222.222

gives:

Using domain server:
Name: 208.67.222.222
Address: 208.67.222.222#53
Aliases:

www.yahoo.com is an alias for www.yahoo-ht3.akadns.net
www.yahoo-ht3.akadns.net has 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:
host www.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?

jack







--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
.



Relevant Pages

  • Re: host -6 failure
    ... Subject: host -6 failure ... using an ipv4 mapped ipv6 address (which ... the second nameserver ... This causes a dns query for an IPv6 ...
    (freebsd-questions)
  • Re: VPC 7.0.2 Virtual Switch issue
    ... >I use a Linux gateway that provides both DHCP & DNS so the config is ... >I'd eliminated DNS by specifying IP Addresses so that's not an issue. ... I had problems with the VPC networking until I hard coded the nameserver ... but I think that the VPC and the OS X host share the same ...
    (microsoft.public.mac.virtualpc)
  • Re: #host localhost
    ... But "host" insists on ... host is a simple utility for performing DNS lookups. ... Host localhost not found: 3 ... nameserver 212.27.54.252 ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Help understanding nameservers
    ... The router magically sets up DNS servers through DHCP when it logs into ... Those are DNS machines used by your Dial-Up provider to enable its customers ... Your router does not have its own nameserver. ...
    (comp.os.linux.networking)
  • Re: Web Site Mystery
    ... host our own web site at this location. ... So in our DNS setup, there is a pointer to the ip address of the ... Run an ipconfig /all on your server and you'll see the ... www.europacrown.com don't work from our corporate network. ...
    (microsoft.public.windows.server.general)