mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 16:39: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
|
in
|
||||||
inputs.dns.lib.toString zone {
|
inputs.dns.lib.toString zone {
|
||||||
SOA = {
|
SOA = {
|
||||||
nameServer = "${netCfg.hostName}.${zone}.";
|
nameServer =
|
||||||
|
nsRecords
|
||||||
|
|> lib.map (record: record.name)
|
||||||
|
|> lib.naturalSort
|
||||||
|
|> lib.head
|
||||||
|
|> (hostName: "${hostName}.${zone}.");
|
||||||
adminEmail = "hostmaster@sstork.dev";
|
adminEmail = "hostmaster@sstork.dev";
|
||||||
serial = 1;
|
serial = 1;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue