dns: got reverse dns working

This commit is contained in:
silver 2023-06-17 00:59:22 +01:00
parent 6585a3c88a
commit 9b1a936f03
10 changed files with 41 additions and 13 deletions

View file

@ -62,8 +62,8 @@ let
''
$ORIGIN 99.1.193.in-addr.arpa.
$TTL 60 ; 1 minute
; hostmaster@${domain} is an email address that recieves stuff related to dns
@ IN SOA ${cfg.own.nameserver}.${domain}. hostmaster.${domain}. (
; hostmaster@skynet.ie is an email address that recieves stuff related to dns
@ IN SOA ${cfg.own.nameserver}.skynet.ie. hostmaster.skynet.ie. (
; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated
${current_date}
600 ; Refresh (10 minutes)
@ -72,10 +72,10 @@ let
3600 ; Minimum (1 hour)
)
@ NS ns1.${domain}.
@ NS ns2.${domain}.
@ NS ns1.skynet.ie.
@ NS ns2.skynet.ie.
${lib.strings.concatMapStrings (x: x + "." + domain + ".\n") cfg.records.reverse}
${lib.strings.concatMapStrings (x: x + "\n") cfg.records.reverse}
''
);