PDA

View Full Version : [ubuntu] NSLOOKUP connection timeout



ed4becky
December 17th, 2009, 08:26 PM
I did an apt-get dist-upgrade recently (I am on 9.10- Karmic).

Ever since I have weird issues, the clearest of which is that nslookup won't work, and I can't ping anything outside the box. I can ssh INTO the box, no problem.

ed@thompson-server:/etc/apt$ nslookup www.google.com
;; connection timed out; no servers could be reached


So I can't apt-get, squid doesn't work, and a bunch of other issues.

Suggestions for attacking the problem? I don't know if it was an issue with the upgrade or not, but that was the last thing I changed, and I have rebooted since.

dcstar
December 18th, 2009, 01:45 AM
I did an apt-get dist-upgrade recently (I am on 9.10- Karmic).

Ever since I have weird issues, the clearest of which is that nslookup won't work, and I can't ping anything outside the box. I can ssh INTO the box, no problem.

ed@thompson-server:/etc/apt$ nslookup www.google.com
;; connection timed out; no servers could be reached


So I can't apt-get, squid doesn't work, and a bunch of other issues.

Suggestions for attacking the problem? I don't know if it was an issue with the upgrade or not, but that was the last thing I changed, and I have rebooted since.

Your DNS settings are probably broken, check the networking settings and /etc/resolv.conf

ed4becky
December 18th, 2009, 02:04 PM
Hmm, my resolv.conf is empty.

ed4becky
December 18th, 2009, 02:23 PM
OK, added my nameserver to /etc/resolvconf/resolv.conf.d/head.

Then I ran sudo resolvconf -u


All is well.

(resolvconf recently got added as a dependency or a recommendation for something else. Thai is what created the issue)

sbarrow
December 19th, 2009, 07:11 PM
I'm having a similar issue. I had xserver issues last night, tried all sorts of things to fix that one of which was sudo apt-get update. Not sure if that broke my LAN nslookup or not. I can browse the internet but can't nslookup or ping hostnames but can ping IP addresses on my LAN. My resolv.conf was also empty, but I don't know the string to put in there. I don't have a /etc/resolvconf/ directory. Any help is greatly appreciated.

sbarrow
December 19th, 2009, 09:00 PM
OK here is what I've done.
modified /etc/reslov.conf and added my nameservers then ran sudo /etc/init.d/networking restart. I can now do an nslookup and it resolves but I still can't ping the hostname. One of my concerns is that the /etc/resolv.conf file says

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

so I've taken a small step forward but still having issues.