title: Resolve docker windows container name from host
body: <p>I'm trying to resolve a docker container address from the host.  Windows host.  Windows container.  I've reviewed number of similar questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/36185111/how-do-i-resolve-hostnames-to-docker-containers-from-the-host">How do I resolve hostnames to Docker containers from the host?</a></p>
  
  <p><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>
  
  <p><a href="https://stackoverflow.com/questions/51885539/docker-windows-container-not-resolving-hosts">Docker - Windows Container Not Resolving Hosts</a></p>
  
  <p>None of these questions address this specific question.  Seems like a trivial operation and I simply don't understand why it doesn't work.</p>
  
  <p>So for example</p>
  
  <pre><code>$ docker network create -d nat --subnet 172.25.0.0/16 test-net
  $ docker container run  --network test-net --name example-1 test/example1
  </code></pre>
  
  <p>Where test/example1 is simply an asp.net core web server.</p>
  
  <p>So it seems to me I should be able to resolve the container name from the host based on the various clues I see in the above referenced answers. For example</p>
  
  <pre><code>$ nslookup example-1 172.25.0.1
  $ nslookup example-1 127.0.0.11
  $ nslookup example-1.test-net.docker 127.0.0.11
  </code></pre>
  
  <p>However nothing works.</p>
  
  <p>Naturally I don't need this capability for production, but it would be very helpful for testing.  I simply don't understand why I can't get this to work.  What am I missing? </p>