title: Specifying DNS for docker build
body: <p>When using the <a href="https://docs.docker.com/engine/reference/commandline/run/" rel="nofollow"><code>docker run</code></a> command, it's possible to specify what the DNS hosts of the container should be by passing <code>--dns &lt;dns_server_ip&gt;</code> arguments.</p>
  
  <p>Is there an equivalent for the <a href="https://docs.docker.com/engine/reference/commandline/build/" rel="nofollow"><code>docker build</code></a> command? There is nothing about it in the docs, and trying it throws an error.</p>