title: How do I resolve hostnames to Docker containers from the host?
body: <p>I understand Docker runs a magical dns on 127.0.0.11, so I figured I'd try</p>
  
  <pre><code>nslookup mycontainername 127.0.0.11
  </code></pre>
  
  <p>where <code>mycontainername</code> is, of course, the name of the container I'm trying to access. However, that timed out.</p>
  
  <pre><code>;; connection timed out; no servers could be reached
  </code></pre>
  
  <p>What am I doing wrong? I'm on Docker 1.10.3. If it helps, I'm pulling up a bunch of containers using <code>docker-compose</code> 1.6.2.</p>
  
  <p><strong>EDIT</strong> This is a duplicate of <a href="https://stackoverflow.com/questions/35828487/docker-1-10-access-a-container-by-its-hostname-from-a-host-machine">Docker 1.10 access a container by it&#39;s hostname from a host machine</a></p>