Changeset 633


Ignore:
Timestamp:
05/14/14 17:32:58 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Catch another instance where a .arpa name could possibly result in a
bizarre value in a NetAddr::IP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r632 r633  
    40394039      # skip all reverse zone .arpa "hostnames" since they're already .arpa names.
    40404040##enhance:  extend {showrev_arpa} eq 'record' to specify record types
    4041       my $tmpip = new NetAddr::IP $rec->{val};
     4041      my $tmpip = new NetAddr::IP $rec->{val} if $rec->{val} =~ /^(?:[\d.\/]+|[a-fA-F0-9:\/]+)$/;
    40424042      $rec->{val} = DNSDB::_ZONE($tmpip, 'ZONE', 'r', '.').($tmpip->{isv6} ? '.ip6.arpa' : '.in-addr.arpa') if $tmpip;
    40434043    }
Note: See TracChangeset for help on using the changeset viewer.