title: Docker : External DNS resolution when using user-defined network
body: <p>When I used the default bridge network generated by Docker daemon, I run this command:</p>
  
  <p><code>docker run -it --dns=10.xxx.xxx.xxx  961bf2f8b1b2</code></p>
  
  <p>The external DNS resolution works well without any problem, but when I use an user-defined network created like this:</p>
  
  <p><code>docker network create --subnet=172.18.0.0/16 dockernet</code></p>
  
  <p>and then I run :<br>
  <code>docker run -it --dns=10.xxx.xxx.xxx --network dockernet 961bf2f8b1b2</code></p>
  
  <p>DNS resolution doesn't work anymore.</p>
  
  <p>I use a workaround to fix that by bind my /etc/resolv.conf like this:</p>
  
  <p><code>docker run -it --dns=10.xxx.xxx.xxx --network dockernet -v /etc/resolv.conf:/etc/resolv.conf 961bf2f8b1b2</code></p>
  
  <p>I guess there is a more suitable solution.</p>