diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/dns.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/dns.nix b/config/dns.nix index a7de636..dd0cf3d 100644 --- a/config/dns.nix +++ b/config/dns.nix @@ -1,4 +1,5 @@ -# dnssec-signzone -A -3 $(head -c 1000 /dev/urandom | sha1sum | cut -b 1-16) -N unixtime -o $zone -t db.${zone} +# To generate keys: +# dnssec-keygen -K /secret/keys/example.net example.net { config, lib, pkgs, ... }: let masterZones = [ "orbekk.com" "orbekk.no" "kufieta.net" ]; @@ -8,8 +9,8 @@ in services.bind = { enable = true; extraConfig = '' - ${concatMapStrings (zone: '' - zone orbekk.com { + ${lib.concatMapStrings (zone: '' + zone ${zone} { type master; file "/var/run/named/db.${zone}.zone"; auto-dnssec maintain; |