X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config%2Fmake-missing-zones.pl;h=b80939827cab505698484ce6254ab02c73411cac;hb=497d2e20d6cbfb495166b59f0e3c9d019524ea95;hp=060a0c492c9a2ba4bb4937d1651bdc7ee5ddcb60;hpb=19b0254f03da475d56a5d6e1b6a39a23f26ddcb8;p=nms diff --git a/config/make-missing-zones.pl b/config/make-missing-zones.pl index 060a0c4..b809398 100755 --- a/config/make-missing-zones.pl +++ b/config/make-missing-zones.pl @@ -22,11 +22,11 @@ for my $net (keys %netnames) { } for my $d (@domains) { - -f "/etc/bind/dynamic/$domain.tg06.gathering.org" and next; + -f "/etc/bind/dynamic/$d.tg06.gathering.org" and next; - print "/etc/bind/dynamic/$domain.tg06.gathering.org\n"; - open ZONE, ">/etc/bind/dynamic/$domain.tg06.gathering.org" - or die "/etc/bind/dynamic/$domain.tg06.gathering.org"; + print "/etc/bind/dynamic/$d.tg06.gathering.org\n"; + open ZONE, ">/etc/bind/dynamic/$d.tg06.gathering.org" + or die "/etc/bind/dynamic/$d.tg06.gathering.org"; print ZONE <<"EOF"; ; autogenerated and updated from dhcpd -- DO NOT TOUCH!