nameservers/public: Fix by using the public hostname for the primary ns

This commit is contained in:
SebastianStork 2026-03-10 20:43:06 +01:00
parent 2c8ecb9c7b
commit f2258ac79c
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -46,7 +46,12 @@ let
in
inputs.dns.lib.toString zone {
SOA = {
nameServer = "${netCfg.hostName}.${zone}.";
nameServer =
nsRecords
|> lib.map (record: record.name)
|> lib.naturalSort
|> lib.head
|> (hostName: "${hostName}.${zone}.");
adminEmail = "hostmaster@sstork.dev";
serial = 1;
};