title: How to tell docker to use a DNS server in an alternate port
body: <p>Docker allows us to specify <a href="https://docs.docker.com/config/containers/container-networking/#dns-services" rel="nofollow noreferrer">some dns options</a>, for example the location of the DNS server:</p>
  
  <pre><code>docker run --dns 172.17.0.5 --dns 8.8.8.8 --dns-search service.consul --rm --name ping_test -it busybox
  </code></pre>
  
  <p>What if my dns server in <code>172.17.0.5</code> is using a port different to <code>53</code>? How can I dell docker about it?</p>