As discussed at
https://www.consul.io/docs/agent/dns.html:
There are a few ways to use the DNS interface. One option is to use a custom DNS resolver library and point it at Consul. Another option is to set Consul as the DNS server for a node and provide a recursors configuration so that non-Consul queries can also be resolved. The last method is to forward all queries for the "consul." domain to a Consul agent from the existing DNS server.
The typical configuration on a node is to set up a local resolver/cache such as dnsmasq, BIND, or Unbound, and forward only queries matching the domain you've designated for Consul's DNS service to the node's consul agent.
You may also forward all queries to Consul via /etc/resolv.conf (and set Consul's DNS port to 53). Consul can forward non-qualifying requests to one or more upstream resolvers by setting the `recursors` option in its configuration.
Best regards,
--Michael