Unable to query consul DNS interface from host

I am able to query the rest service of my remote consul container ie.

curl my-ip:8500/v1/catalog/services

    {"consul":[],"nginx-80":[],"redis":[]}

curl my-ip:8500/v1/catalog/service/redis

    [{"Node":"consul","Address":"172.17.0.3","ServiceID":"954f32f077ed:redis:6379","ServiceName":"redis","ServiceTags":null,"ServiceAddress":"","ServicePort":32768}]

But when I try the dns interface of consul

  • I could curl using IP but not using consul serviceName?
  • How to organize architecture of an isomorphic app using docker?
  • UnknownHostException in Kubernetes-Container
  • Why use Consul with Kubernetes, Docker, Mesos?
  • Docker DNS on Enterprise Networked Ubuntu
  • Mapping django apps to docker containters, addressing with URLs
  • dig @my-ip -p 8600 redis.service.consul
    
        ; <<>> DiG 9.8.3-P1 <<>> @45.33.119.251 -p 8600 redis.service.consul
        ; (1 server found)
        ;; global options: +cmd
        ;; connection timed out; no servers could be reached
    

    I’m not sure if the format of my query is incorrect or how I started the container has an issue.

  • Docker image > google/cadvisor:latest
  • docker build apt-get update failed with custom network
  • Excluding all hidden files with .dockerignore
  • docker autobuild with git private submodule
  • Docker running Windows applications
  • Docker Private Registry: ping attempt failed
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.