}
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!