docker-compose up -d
Currently, output from the dnsmasq
and dnsmasq-secondary
servers are
minimal. Verbosity of output can be increased for troubleshooting. Edit
docker-compose.yml
and add --log-queries
to the dnsmasq command.
DNS client troubleshooting using Docker.
docker-compose run dns-troubleshoot
Using the dig
command inside of the container.
# rely on the internal container DNS
dig consul.service.consul
# specify the dnsmasq hostname as the DNS server
dig @dnsmasq vault.service.consul
# reference vault DNS by tags
dig active.vault.service.consul
dig standby.vault.service.consul