Since a couple of days, I was plagued by some DNS problems when using Docker 1.10+. Seems that the dnsmasq process is writing the address 127.0.1.1 into the resolv.conf. The purpose of the dnsmasq is to cache DNS queries. Unfortunately, it was no longer available in my Docker containers. The only solution for now (maybe it is a workaround) is to throw dnsmasq out. You can do this by editing the file:
/etc/NetworkManager/NetworkManager.conf
Open the file with an editor and comment out the line
dns=dnsmasq ---> #dns=dnsmasq
After that, kill dnsmasq and restart the network-manager. You should see the changes in the resolv.conf after that:
sudo killall dnsmasq sudo service network-manager restart cat /etc/resolv.conf