Changeset 251 for trunk


Ignore:
Timestamp:
02/29/12 14:01:20 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix buglet adding default AAAA+PTR records same as was fixed
for A+PTR in r249.
See #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r249 r251  
    350350      } elsif (${$args{val}} =~ /[a-f:]/) {
    351351        # 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/;
    353353        if ($args{addr}) {
    354354          if ($args{addr}->addr =~ /^0/) {
    355             ${$args{val}} =~ s/^:*/ZONE::/;
     355            ${$args{val}} =~ s/^:*/ZONE::/ unless ${$args{val}} =~ /^ZONE/;
    356356          } else {
    357357            ${$args{val}} = $args{addr}->addr;
     
    361361        # bare number (probably).  These could be v4 or v6, so we'll
    362362        # 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/;
    364364      }
    365365      ${$args{host}} =~ s/\.*$/\.$config{domain}/ if ${$args{host}} !~ /(?:$config{domain}|ADMINDOMAIN)$/;
Note: See TracChangeset for help on using the changeset viewer.