From aa2063743c89d07408ff0d7593a08fbace24a7ca Mon Sep 17 00:00:00 2001 From: Fritz Grimpen Date: Sun, 28 Feb 2021 13:56:30 +0000 Subject: [PATCH] NSD configuration for patterns --- roles/nsd/templates/nsd.conf.j2 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/roles/nsd/templates/nsd.conf.j2 b/roles/nsd/templates/nsd.conf.j2 index b987751..f600d7a 100644 --- a/roles/nsd/templates/nsd.conf.j2 +++ b/roles/nsd/templates/nsd.conf.j2 @@ -3,6 +3,8 @@ server: ip-address: 127.0.0.1@5353 ip-address: ::1@5353 + ip-address: 176.9.59.104@53 + ip-address: 2a01:4f8:150:926f::2@53 # policy statistics: 3600 @@ -19,6 +21,9 @@ server: log-time-ascii: no debug-mode: yes + # zones are state, not configuration + zonesdir: "/var/db/nsd/zones" + # Remote control config section. remote-control: control-enable: yes @@ -38,3 +43,24 @@ zone: request-xfr: 2001:7fd::1 NOKEY # k.root-servers.net request-xfr: 2620:0:2830:202::132 NOKEY # xfr.cjr.dns.icann.org request-xfr: 2620:0:2d0:202::132 NOKEY # xfr.lax.dns.icann.org + +# Patterns for dynamically managed zones +# The list of dynamic zones is in /var/db/nsd/zone.list and is managed +# by `nsd-control addzone` and `nsd-control delzone` +pattern: + name: "local" + zonefile: "%s" + # brunn.ccchb.de + provide-xfr: 159.69.196.38 NOKEY + provide-xfr: 2a01:4f8:1c1c:c197:: NOKEY + # ns1.grimpen.net + provide-xfr: 51.83.186.231 NOKEY + provide-xfr: 2001:41d0:601:1100::33b7 NOKEY + +pattern: + name: "replicate-brunn" + # brunn.ccchb.de + allow-notify: 159.69.196.38 NOKEY + allow-notify: 2a01:4f8:1c1c:c197:: NOKEY + request-xfr: AXFR 2a01:4f8:1c1c:c197:: NOKEY +