title: Docker daemon and DNS
body: <p>I am trying to force the docker daemon to use my DNS server which is binded to bridge0 interface.
  I have added --dns 172.17.42.1 in my docker_opts but no success</p>
  
  <p>DNS server reply ok with dig command:</p>
  
  <pre><code>dig @172.17.42.1 registry.service.consul SRV +short
  1 1 5000 registry2.node.staging.consul.
  </code></pre>
  
  <p>But pull with this domain fails:</p>
  
  <pre><code>docker pull registry.service.consul:5000/test
  FATA[0000] Error: issecure: could not resolve "registry.service.consul": lookup registry.service.consul: no such host
  </code></pre>
  
  <p>PS: By adding nameserver 172.17.42.1 in my /etc/resolv.conf solve the issue but the DNS has to be exclusively for docker commands.</p>
  
  <p>Any idea ?</p>