diff --git a/cluster/services/dns/authoritative.nix b/cluster/services/dns/authoritative.nix index 8bfe4a1..8e8243f 100644 --- a/cluster/services/dns/authoritative.nix +++ b/cluster/services/dns/authoritative.nix @@ -61,4 +61,17 @@ in { systemd.services.coredns = { after = [ "pdns.service" ]; }; + + consul.services.pdns = { + mode = "external"; + definition.service = { + name = "authoritative-dns-backend"; + address = config.links.localAuthoritativeDNS.ipv4; + port = config.links.localAuthoritativeDNS.port; + checks = lib.singleton { + interval = "60s"; + tcp = config.links.localAuthoritativeDNS.tuple; + }; + }; + }; }