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


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


But when I try the dns interface of consul

  • Docker-compose container using host DNS server
  • Java Spring will not talk to Consul when run as a Docker container
  • Docker containers can't access local network DNS
  • Why Can't I Access Service in Docker Swarm by its Name or VIP?
  • Is Docker Swarm supposed to not remove rescheduled containers when crashed node rejoins?
  • Mapping django apps to docker containters, addressing with URLs
  • dig @my-ip -p 8600 redis.service.consul
        ; <<>> DiG 9.8.3-P1 <<>> @ -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.

  • How to forward an additional port to docker container created by mupx?
  • Validating docker v0.8 on OS X, boot2docker ssh hangs, docker version generates EOF
  • Get python project into docker image
  • docker-ce 17.06.0-ce failed to pull from private registry mirror
  • Creating an ng-cli container in docker not working
  • Why is inter container communication in Docker the default?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.