Changeset 583 for trunk/textrecs.cgi


Ignore:
Timestamp:
01/03/14 14:58:09 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Revise and extend the showrec_arpa_ns hack to optionally cover all
displayed zone names, all displayed records, or both

May still need a little more fixing for complete coverage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/textrecs.cgi

    r581 r583  
    8383  $rec->{val} = "$rec->{distance}  $rec->{weight}  $rec->{port}  $rec->{val}" if $rec->{type} eq 'SRV';
    8484  if ($webvar{revrec} eq 'y') {
    85     if ($dnsdb->{showrec_arpa_ns} && $rec->{type} eq 'NS') {
    86       my $tmp = new NetAddr::IP $rec->{val};
    87       $rec->{val} = DNSDB::_ZONE($tmp, 'ZONE', 'r', '.').($tmp->{isv6} ? '.ip6.arpa' : '.in-addr.arpa');
    88     }
    8985    printf "%-16s\t%d\t%s\t%s\n", $rec->{val}, $rec->{ttl}, $rec->{type}, $rec->{host};
    9086  } else {
Note: See TracChangeset for help on using the changeset viewer.