hashicorp / hashicorp/consul

Please update https://learn.hashicorp.com/tutorials/consul/dns-forwarding#dnsmasq-setup

Open
#8,752 0 comments 0 reactions 0 assignees View on GitHub
type/docs
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

There is a nuance in the Consul + dnsmasq configuration. Please see if https://learn.hashicorp.com/tutorials/consul/dns-forwarding#dnsmasq-setup can be updated to include this nuance:

If you configured your Consul agent to answer DNS queries with a non-zero TTL (service_ttl or node_ttl settings), dnsmasq will *not cache* those replies anyway unless Consul is also configured not to refuse recursive DNS queries (those with the RD flag set).

Configure a recursor in Consul (even a bogus one which will never be used) and the problem is solved.

Discussion: https://discuss.hashicorp.com/t/dnsmasq-problem-caching-responses-from-consul/14673

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.