cluster/services/dns: register with consul

This commit is contained in:
Max Headroom 2023-03-05 23:50:50 +01:00
parent 7aab09157e
commit 3be1bc9336

View file

@ -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;
};
};
};
}