]> git.sesse.net Git - nms/blobdiff - config/make-missing-zones.pl
Fix a typo.
[nms] / config / make-missing-zones.pl
index 060a0c492c9a2ba4bb4937d1651bdc7ee5ddcb60..b80939827cab505698484ce6254ab02c73411cac 100755 (executable)
@@ -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!