openshift/vagrant-openshift — pull request #109 by derekwaynecarr (2014-06-18 04:50:26+00:00)
Title: Docker defaults DNS to 8.8.8.8 if resolv.conf uses 127.0.0.1

If the resolv.conf file uses 127.0.0.1 as first nameserver, then docker will use 8.8.8.8 as nameserver of each container. This causes problems when certain networks block 8.8.8.8 tcp traffic which then makes docker builds not function in local vagrant environments. To work-around this, the nameserver is also listening on the docker0 address, so we will use that instead in our network configuration. In this way, docker containers are also able to lookup address in our dynamic dns.