41 lines
704 B
Nix
41 lines
704 B
Nix
{ config, dns, ... }:
|
|
with dns.lib.combinators;
|
|
let
|
|
cfg = config.lab.networking;
|
|
in
|
|
{
|
|
SOA = {
|
|
nameServer = "ns";
|
|
adminEmail = "hostmaster@geokunis2.nl";
|
|
serial = 2024020500;
|
|
};
|
|
|
|
NS = [
|
|
"ns.geokunis2.nl."
|
|
"ns0.transip.net."
|
|
"ns1.transip.nl."
|
|
"ns2.transip.eu."
|
|
];
|
|
|
|
MX = [ (mx.mx 10 "mail.geokunis2.nl.") ];
|
|
|
|
CAA = letsEncrypt "caa@geokunis2.nl";
|
|
|
|
subdomains = {
|
|
ns = {
|
|
A = [ cfg.public.ipv4.router ];
|
|
AAAA = [ cfg.dmz.ipv6.services ];
|
|
};
|
|
|
|
ns1 = {
|
|
A = [ cfg.public.ipv4.router ];
|
|
AAAA = [ cfg.dmz.ipv6.services ];
|
|
};
|
|
|
|
ns2 = {
|
|
A = [ cfg.public.ipv4.router ];
|
|
AAAA = [ cfg.dmz.ipv6.services ];
|
|
};
|
|
|
|
};
|
|
}
|