-
Notifications
You must be signed in to change notification settings - Fork 486
Module does not support well-behaved reverse lookup under systemd-resolved #155
Comments
Thanks for reporting!
What's the default behavior?
What value would you plug into |
The behavior of the documented TL;DR: most of the time reverse resolution of all IPs goes through whatever the system has been configured to use. A small percentage of the time reverse resolution goes through consul. That is to say, reverse lookup is not predictable in the documented hashicorp/consul#6731 is predictable in that, for a set of configured subnets, It's perfectly reasonable not to put consul agents on every machine in one's infrastructure. You can solve this by placing a DNS server with appropriate reverse lookup capability into In this case, Make sense? |
Got it, thanks for the context. So, to summarize, you are proposing that for systems using DNS=127.0.0.1
Domains=~consul ~<CIDR>.in-addr.arpa Where "recursors": ["<DNS_SERVER>"], Where Is that right? |
I'm definitely proposing the first thing, with caveat that it's actually the "backwards truncated CIDR" and it should be opt-in. There could also be multiple CIDRs. The second thing, I'm outlining the pros/cons. You could imagine mimicking the |
(sorry for delay, we were all away for a company offsite) Roger. I think if both options are opt-in based on passed-in params, this makes sense to add. A PR is very welcome! |
The current state of consul support for
systemd-resolved
is a bit funky in that forward resolution works well and simply, while reverse lookup of IPs will, with low percentage, return.consul
domains or whatever the other DNS resolvers say. e.g. hashicorp/consul#6462.hashicorp/consul#6731 provides a solution for ensuring that all reverse lookups of an IP address known to consul results in a
.consul
domain.It has the added behavior (perhaps undesirable) of reverse lookup failing on IP addresses not known to consul unless one also configures the
recursors
option. e.g.I think it would be reasonable to consider adopting this configuration in the consul-cluster module and intend this issue to be a starting point for the conversation.
Thanks for the module as it has facilitated very rapid progress on my side!
The text was updated successfully, but these errors were encountered: