Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant ping website, only ip address [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jaymoney
n00b
n00b


Joined: 06 Dec 2006
Posts: 32
Location: Cincinnati, OH

PostPosted: Wed Dec 06, 2006 8:58 pm    Post subject: cant ping website, only ip address [solved] Reply with quote

if i try ping -c 3 www.google.com i'm getting the error unknown host www.google.com. however if i try ping -c 3 216.239.37.99 (google) i'm getting a reply.

any idea on what could be causing this? or how to fix it?


Last edited by jaymoney on Sat Jan 06, 2007 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Wed Dec 06, 2006 9:02 pm    Post subject: Reply with quote

Sounds at face value like dns resolving is broken. Is your /etc/resolv.conf file populated with name servers, and are the nameservers pingable from that machine?
Back to top
View user's profile Send private message
jaymoney
n00b
n00b


Joined: 06 Dec 2006
Posts: 32
Location: Cincinnati, OH

PostPosted: Wed Dec 06, 2006 9:41 pm    Post subject: Reply with quote

there is nothing in that file. how should it be configured?
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Wed Dec 06, 2006 9:44 pm    Post subject: Reply with quote

simple!

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx


That's it. These need to be replaced with the actual IP's of your nameserver(s) of course.
Back to top
View user's profile Send private message
jaymoney
n00b
n00b


Joined: 06 Dec 2006
Posts: 32
Location: Cincinnati, OH

PostPosted: Wed Dec 06, 2006 10:32 pm    Post subject: Reply with quote

thanks. but how do i figure out my nameserver? is it a service on my router of my isp?
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Wed Dec 06, 2006 10:41 pm    Post subject: Reply with quote

Are you on dial-up, adsl, cable? Yes your ISP will be the ones providing your DNS servers. Get with them to find out what they are.
Back to top
View user's profile Send private message
jaymoney
n00b
n00b


Joined: 06 Dec 2006
Posts: 32
Location: Cincinnati, OH

PostPosted: Wed Dec 06, 2006 10:48 pm    Post subject: Reply with quote

i found what they were. i can add the two nameservers to resolv.conf. saved the file and then ping and ssh worked fine. but if i reboot, log back in, then open resolv.conf everything i had entered before is cleared.
Back to top
View user's profile Send private message
jaymoney
n00b
n00b


Joined: 06 Dec 2006
Posts: 32
Location: Cincinnati, OH

PostPosted: Thu Dec 07, 2006 12:22 am    Post subject: Reply with quote

all i had to do was add dns_servers=" xxx.xxx.xxx.xxx" into /etc/conf.d/net and it writes the nameservers into resolv.conf during startup

thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum