Changeset 585 for trunk


Ignore:
Timestamp:
01/03/14 15:23:02 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Add .arpa detection to record update to match record add.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r584 r585  
    39673967
    39683968  # prep for validation
     3969  # Autodetect formal .arpa names
     3970  if ($$val =~ /\.arpa\.?$/) {
     3971    my ($code,$tmpval) = _zone2cidr($$val);
     3972    return ('FAIL', $tmpval) if $code eq 'FAIL';
     3973    $$val = $tmpval;
     3974  }
    39693975  my $addr = NetAddr::IP->new($$val);
    39703976  $$host =~ s/\.+$//;   # FQDNs ending in . are an internal detail, and really shouldn't be exposed in the UI.
Note: See TracChangeset for help on using the changeset viewer.