Using multiple A-records for my domain #14869
Replies: 2 comments 14 replies
-
I would not use dnsdist for this task, but rather PowerDNS Authoritative with its Lua records. Would that not be an option for you? |
Beta Was this translation helpful? Give feedback.
-
... I understand you're eliding for the sake of privacy, but given the framing of your question I'm wondering if you're not dealing with an XY problem . It at least sounds like what you're trying to construct is a relatively straightforward high-availability setup, where you want the HA provider to check the health of the servers and route traffic only to the ones that are still up. In which case, there is absolutely no need to (and every reason not to) use dnsdist, or in fact DNS at all. Leaving aside the difficulties you're already encountering, the way DNS caching and TTLs work means that potentially wrong answers will persist in DNS caches over the world for much longer than any anticipated outage. Instead I'd recommend something like HAProxy, which is as its name implies a High-Availability Proxy server software that explicitly includes load balancing and health checks and is pretty much made specifically for the exact scenario you're describing. |
Beta Was this translation helpful? Give feedback.
-
I have a domain abc.xyz with two A records: 192.168.1.10 and 192.168.1.11. I want to configure dnsdist to check if a TCP check to the A record 192.168.1.10 times out; in that case, any subsequent requests from clients to dnsdist should resolve only to the remaining IP, which is 192.168.1.11, and vice versa. This means that if both IPs are functioning normally, the resolution should distribute evenly between the two IPs. If one of the records fails, dnsdist should only resolve to the operational IP. These are two records for the domain abc.xyz, not for recursive DNS.
Beta Was this translation helpful? Give feedback.
All reactions