37d3bba436c6d6c4dc395bbf18d6593fff9e70f2
1 "$tool"/local
/apt-get-install nsd
2 "$tool"/local
/insserv-remove nsd3
4 sudo
install -d -m 750 -o root
-g nsd \
9 ip-address: $local_ipv4
12 cat "$tool"/etc
/nsd
3/nsd.conf
13 for zone
in $
(find "$tool"/etc
/nsd
3/zone.d \
14 -mindepth 1 -maxdepth 1 -type f \
18 if test -e "$tool"/etc
/nsd
3/zone.d
/"$zone".zone.
m4
20 --define=ZONE_DOMAIN
=$zone \
21 --define=ZONE_SERIAL
=$
(cd "$tool" && git log
-1 --format="%ct" -- etc
/nsd
3/zone.d
/"$zone".zone.
m4) \
22 --define=LOCAL_IP4
=$local_ipv4 \
23 "$tool"/etc
/nsd
3/zone.d
/"$zone".zone.
m4
24 else cat "$tool"/etc
/nsd
3/zone.d
/"$zone".zone
26 sudo
install -m 440 -o root
-g nsd
/dev
/stdin \
27 /etc
/nsd
3/zone.d
/"$zone".zone
31 zonefile: /etc/nsd3/zone.d/$zone.zone
32 $(cat "$tool"/etc/nsd3/zone.d/"$zone".conf)
36 sudo
install -m 640 -o root
-g nsd
/dev
/stdin \
39 "$tool"/local
/runit-sv-start
"$sv"