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

69 lines
1.1 KiB
Nix
Raw Normal View History

{ config, dns, ... }:
2024-01-07 19:24:12 +00:00
with dns.lib.combinators;
let
2024-01-14 16:59:32 +00:00
inherit (config.lab.networking) publicIPv4 dmzServicesIPv6 dockerSwarmIPv6;
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.") ];
A = [ publicIPv4 ];
2024-01-14 16:59:32 +00:00
AAAA = [ dockerSwarmIPv6 ];
2024-01-07 19:24:12 +00:00
CAA = letsEncrypt "caa@geokunis2.nl";
subdomains = {
2024-01-14 16:59:32 +00:00
"*" = {
A = [ publicIPv4 ];
AAAA = [ dockerSwarmIPv6 ];
};
2024-01-14 14:20:32 +00:00
ns = {
A = [ publicIPv4 ];
AAAA = [ dmzServicesIPv6 ];
};
ns1 = {
A = [ publicIPv4 ];
AAAA = [ dmzServicesIPv6 ];
};
ns2 = {
A = [ publicIPv4 ];
AAAA = [ dmzServicesIPv6 ];
};
2024-01-17 17:09:05 +00:00
# Override because we don't support IPv6 for KMS.
kms = {
A = [ publicIPv4 ];
AAAA = [ ];
};
2024-01-17 22:04:27 +00:00
wg = {
A = [ publicIPv4 ];
AAAA = [ "2a0d:6e00:1a77::1" ];
};
wg4 = {
A = [ publicIPv4 ];
AAAA = [ ];
};
wg6 = {
A = [ ];
AAAA = [ "2a0d:6e00:1a77::1" ];
};
2024-01-07 19:24:12 +00:00
};
}