The DNS resolution in UBUNTU 12.04 is being handled by dnsmasq server.
So resolv.conf just has 127.0.0.1 in its nameserver field.
dnsmasq accumulates all the details from the dhcp , etc. hookscripts and pings these nameservers. But there is problem in its functioning.
http://ubuntuforums.org/showthread.php?t=1968061
so to resolve this problem just disable the dnsmasq method for name resolution, by commenting out the line dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf
and restart the network manager
with
sudo restart network-manager
The DNS details from dhcp are now pushed to resolv.conf.
So resolv.conf just has 127.0.0.1 in its nameserver field.
dnsmasq accumulates all the details from the dhcp , etc. hookscripts and pings these nameservers. But there is problem in its functioning.
http://ubuntuforums.org/showthread.php?t=1968061
so to resolve this problem just disable the dnsmasq method for name resolution, by commenting out the line dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf
and restart the network manager
with
sudo restart network-manager
The DNS details from dhcp are now pushed to resolv.conf.