Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After apt-get upgrade this morning, my Ubuntu 12.04 web server does no longer resolve a domain name hosted on it.

I also received the error message:

"resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything."

I found this question Network Manager not populating resolv.conf but the solutions provided there did not resolve the problem.

Creating the symlink in fact caused websites to load very slowly, so I assume there is some sort of (reverse?) DNS lookup not working, when I create the symlink.

share|improve this question
    
Look up my post here askubuntu.com/questions/127678/… and let me know if that worked for you. –  exIT Solutions Aug 5 '12 at 23:39

1 Answer 1

Running "dpkg-reconfigure resolvconf" sets up the symlink /etc/resolv.conf -> ../run/resolvconf/resolv.conf. After this you should reboot.

If websites are slow to start loading then this could indicate that a nameserver listed in resolv.conf is not responding. The glibc resolver(3) tries the first listed nameserver and waits five seconds before trying the next listed nameserver.

Also try commenting out "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf and running "restart network-manager". This disables the local NetworkManager-controlled dnsmasq instance, thus eliminating it as a possible cause of your problem.

If websites are not slow to start loading but load slowly after starting then this is most likely not a name resolution problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.