- Timestamp:
- 02/29/12 14:01:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r249 r251 350 350 } elsif (${$args{val}} =~ /[a-f:]/) { 351 351 # looks like a v6 or fragment 352 ${$args{val}} =~ s/^:*/ZONE::/ if !$args{addr} ;352 ${$args{val}} =~ s/^:*/ZONE::/ if !$args{addr} && ${$args{val}} !~ /^ZONE/; 353 353 if ($args{addr}) { 354 354 if ($args{addr}->addr =~ /^0/) { 355 ${$args{val}} =~ s/^:*/ZONE::/ ;355 ${$args{val}} =~ s/^:*/ZONE::/ unless ${$args{val}} =~ /^ZONE/; 356 356 } else { 357 357 ${$args{val}} = $args{addr}->addr; … … 361 361 # bare number (probably). These could be v4 or v6, so we'll 362 362 # expand on these on creation of a reverse zone. 363 ${$args{val}} = "ZONE,${$args{val}}" ;363 ${$args{val}} = "ZONE,${$args{val}}" unless ${$args{val}} =~ /^ZONE/; 364 364 } 365 365 ${$args{host}} =~ s/\.*$/\.$config{domain}/ if ${$args{host}} !~ /(?:$config{domain}|ADMINDOMAIN)$/;
Note:
See TracChangeset
for help on using the changeset viewer.