Is the dns cache setting is required on consul client agents ?

532 views
Skip to first unread message

Manoja Mishra

unread,
May 16, 2016, 12:19:09 AM5/16/16
to Consul
My understanding is that the DNS queries are resolved by consul servers and the server agent's config should have the DNS cache configurations.

 Is the dns cache setting is required on consul client agents ?

Thanks,
Manoja

Manoja Mishra

unread,
May 24, 2016, 7:39:30 AM5/24/16
to Consul
I am waiting for a response. Team hashicorp, could you please respond to this query ?

Michael Fischer

unread,
May 24, 2016, 10:03:20 AM5/24/16
to consu...@googlegroups.com
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.

See also https://www.consul.io/docs/guides/dns-cache.html, which discusses the various TTL options available.

Best regards,

--Michael

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/99a4262c-1a43-4370-b02e-2b5b47a95f6d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Manoja Mishra

unread,
May 27, 2016, 12:47:53 AM5/27/16
to Consul
Thanks for the response. I was looking if the DNS caching configurations are required on the consul client agents. my understanding is that the dns caching configs will be only required on the consul server agents.
Reply all
Reply to author
Forward
0 new messages