2d8ac8500c46c91dac966f2c090d2584edcca20c
1 rule apt_get_install nsd
2 rule insserv_remove nsd3
6 sudo
install -d -m 750 -o root
-g nsd \
14 cat "$tool"/etc
/nsd
3/nsd.conf
16 for conf
in "$tool"/etc
/nsd
3/zone.d
/*.conf
17 do conf
=${conf#"$tool"/etc/nsd3/zone.d/}
18 local domain
=${conf%.conf}
19 if test -e "$tool"/etc
/nsd
3/zone.d
/"$domain".zone.
m4
21 --define=ZONE_DOMAIN
=$domain \
22 --define=ZONE_SERIAL
=$
(cd "$tool" && git log
-1 --format="%ct" -- etc
/nsd
3/zone.d
/"$domain".zone.
m4) \
23 --define=VM_IP4
=$vm_ipv4 \
24 "$tool"/etc
/nsd
3/zone.d
/"$domain".zone.
m4
25 else cat "$tool"/etc
/nsd
3/zone.d
/"$domain".zone
27 sudo
install -m 440 -o root
-g nsd
/dev
/stdin \
28 /etc
/nsd
3/zone.d
/"$domain".zone
32 zonefile: /etc/nsd3/zone.d/$domain.zone
33 $(cat "$tool"/etc/nsd3/zone.d/"$conf")
37 sudo
install -m 640 -o root
-g nsd
/dev
/stdin \