Howto use dnsdock in Ubuntu 14.04 trusty
Using dnsdock resolves the problem of the changing IP's of containers. It is much easier to start a named container and use dns on the host to access the container simply by its name.
patch your /etc/ files so NetworkManager's dnsmasq to use the dnsdock nameserver.
sudo su - cd wget https://gist.githubusercontent.com/rguimaraens/6b9e57673170dff76ad4/raw/c2e799aca9593fe735d11845606dc9753ff86db7/etc-dnsdock.patch cd /etc patch < /root/etc-dnsdock.patch resolvconf -u exit
start dnsdock container (and restart it on boot)
sudo docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name dnsdock -p 172.17.42.1:53:53/udp --restart always tonistiigi/dnsdock
test your new dns