PDA

View Full Version : [ubuntu] Unable to ping anything but ip's


Sir Jake
January 21st, 2009, 01:08 PM
I'm able to ssh into my box, but if I try the command sudo apt-get update I get this.

ezzi@PureVoltage:~$ sudo apt-get update
Err http://us.archive.ubuntu.com hardy Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy/multiverse Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy-updates Release.gpg
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy-updates/main Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy-updates/restricted Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy-updates/universe Translation-en_US
Could not resolve 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com hardy-updates/multiverse Translation-en_US


When I tried to ping another ip on my network it works, so I tried ping www.google.com and it failed.
When trying it on our other box it worked fine so I pinged the ip for google.com and it worked great.

Any ideas why this is happening?

If you need more info please let me know.
Thanks.

spiderbatdad
January 21st, 2009, 01:20 PM
what do you have in /etc/resolv.conf?

cdenley
January 21st, 2009, 01:36 PM
Also, post this output.

dig +short www.google.com
dig +short @208.67.222.222 www.google.com
nc -z -v 74.125.95.103 80

buzz57
January 21st, 2009, 01:40 PM
they look like DNS or routing table errors, you could try checking your network settings

Sir Jake
January 21st, 2009, 02:05 PM
what do you have in /etc/resolv.conf?

blah that would be it.
search va.shawcable.net
nameserver 64.59.144.18
nameserver 64.59.144.19

Removed that and ding ding.
seems to be working now.
Thanks