NetworkManager not populating resolv.conf
Use following command and answer YES to enable dynamic updates:
sudo dpkg-reconfigure resolvconf
Worked for me on Ubuntu 12.04.
I had the same problem. Seems that Ubuntu is using a local resolver now. The fastest way to remove that is to comment out the following line in /etc/NetworkManager/NetworkManager.conf
:
#dns=dnsmasq
For more information, please take a look at this page.
If /etc/resolv.conf is a file then move it to /run/resolvconf/resolv.conf :
sudo mv /etc/resolv.conf /run/resolvconf/resolv.conf
Then create the symlink:
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf