mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
nameservers/public: Fix by using the public hostname for the primary ns
This commit is contained in:
parent
2c8ecb9c7b
commit
f2258ac79c
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue