View previous topic :: View next topic |
Author |
Message |
jaymoney n00b
Joined: 06 Dec 2006 Posts: 32 Location: Cincinnati, OH
|
Posted: Wed Dec 06, 2006 8:58 pm Post subject: cant ping website, only ip address [solved] |
|
|
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 |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Wed Dec 06, 2006 9:02 pm Post subject: |
|
|
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 |
|
|
jaymoney n00b
Joined: 06 Dec 2006 Posts: 32 Location: Cincinnati, OH
|
Posted: Wed Dec 06, 2006 9:41 pm Post subject: |
|
|
there is nothing in that file. how should it be configured? |
|
Back to top |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Wed Dec 06, 2006 9:44 pm Post subject: |
|
|
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 |
|
|
jaymoney n00b
Joined: 06 Dec 2006 Posts: 32 Location: Cincinnati, OH
|
Posted: Wed Dec 06, 2006 10:32 pm Post subject: |
|
|
thanks. but how do i figure out my nameserver? is it a service on my router of my isp? |
|
Back to top |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Wed Dec 06, 2006 10:41 pm Post subject: |
|
|
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 |
|
|
jaymoney n00b
Joined: 06 Dec 2006 Posts: 32 Location: Cincinnati, OH
|
Posted: Wed Dec 06, 2006 10:48 pm Post subject: |
|
|
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 |
|
|
jaymoney n00b
Joined: 06 Dec 2006 Posts: 32 Location: Cincinnati, OH
|
Posted: Thu Dec 07, 2006 12:22 am Post subject: |
|
|
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 |
|
|
|