Install & (re)configure nsd server on Debian, FreeBSD or OpenBSD
avec nsd-control (add|delete)zone $ZONE $PATTERN
nsd_addresses
([]) list of ip address (*
if empty)nsd_patterns
([]) list of patterns to use with zones item format: same aspattern
in nsd.confnsd_keys
([]) list of TSIG keys item format: same askey
in nsd.confnsd_zones
([]) list of zones to add/modify item format: dict withname
andpattern
elements (eventually 'intpattern' for machines withis_internal_nsd
== True)- if
pattern
is not defined, zone will be skipped by hosts (unless host hasis_internal_nsd==True
andintpattern
is defined) - if
pattern
(orintpattern
if applicable) is defined but the pattern is not innsd_patterns
, zone is skipped by the host to create list from existing zones, type on your nsd server:echo " nsd_zones:"; nsd-control zonestatus | awk '/^zone:/ { z=$2; } /pattern:/ { printf(" - { name: '\''%s'\'', pattern: %s }\n",z,$2); }'
- if
is_internal_nsd
(False) prefer "intpattern" to "pattern" innsd_zones
nsd_zones_force_pattern
('') if not empty, use this pattern for all zones innsd_zones
nsd_zonesdir_owner
(root) user who should own master zone files