nixos-servers/nixos/modules/networking/dmz_services/zones/geokunis2.nl.nix

69 lines
1.2 KiB
Nix
Raw Normal View History

{ config, dns, ... }:
2024-01-07 19:24:12 +00:00
with dns.lib.combinators;
let
2024-01-31 20:58:23 +00:00
cfg = config.lab.networking;
in
2024-01-07 19:24:12 +00:00
{
SOA = {
nameServer = "ns";
adminEmail = "hostmaster@geokunis2.nl";
2024-01-17 22:04:27 +00:00
serial = 2024011401;
2024-01-07 19:24:12 +00:00
};
NS = [
"ns.geokunis2.nl."
"ns0.transip.net."
"ns1.transip.nl."
"ns2.transip.eu."
];
MX = [ (mx.mx 10 "mail.geokunis2.nl.") ];
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.dmz.ipv6.dockerSwarm ];
2024-01-07 19:24:12 +00:00
CAA = letsEncrypt "caa@geokunis2.nl";
subdomains = {
2024-01-14 16:59:32 +00:00
"*" = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.dmz.ipv6.dockerSwarm ];
2024-01-14 16:59:32 +00:00
};
2024-01-14 14:20:32 +00:00
ns = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.dmz.ipv6.services ];
2024-01-14 14:20:32 +00:00
};
ns1 = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.dmz.ipv6.services ];
2024-01-14 14:20:32 +00:00
};
ns2 = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.dmz.ipv6.services ];
2024-01-14 14:20:32 +00:00
};
2024-01-17 17:09:05 +00:00
# Override because we don't support IPv6 for KMS.
kms = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
2024-01-17 17:09:05 +00:00
AAAA = [ ];
};
2024-01-17 22:04:27 +00:00
wg = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
AAAA = [ cfg.public.ipv6.router ];
2024-01-17 22:04:27 +00:00
};
wg4 = {
2024-01-31 20:58:23 +00:00
A = [ cfg.public.ipv4.router ];
2024-01-17 22:04:27 +00:00
AAAA = [ ];
};
wg6 = {
A = [ ];
2024-01-31 20:58:23 +00:00
AAAA = [ cfg.public.ipv6.router ];
2024-01-17 22:04:27 +00:00
};
2024-01-07 19:24:12 +00:00
};
}