Changeset 608
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r607 r608 3749 3749 ($self->{showrev_arpa} eq 'record' || $self->{showrev_arpa} eq 'all') && 3750 3750 $rec->{val} !~ /\.arpa$/ ) { 3751 # note we're sneakily skipping all reverse zone .arpa "hostnames" on the excuse 3752 # that this fragment won't do anything anyway. however: 3753 # knurd.5.0.0.0.b.0.0.b.5.b.0.b.f.e.e.b.d.a.e.d.ip6.arpa -> 192.168.7.6/32 3754 # when fed to NetAddr::IP. O_o (At least 4.058, .062, and .071, on CentOS 5 and Debian wheezy and sid) 3751 # skip all reverse zone .arpa "hostnames" since they're already .arpa names. 3755 3752 ##enhance: extend {showrev_arpa} eq 'record' to specify record types 3756 3753 my $tmpip = new NetAddr::IP $rec->{val}; -
trunk/dns.cgi
r592 r608 2069 2069 $page->param(name => ($webvar{name} ? $webvar{name} : $domroot)); 2070 2070 my $zname = ($webvar{defrec} eq 'y' ? 'ZONE' : $dnsdb->revName($webvar{parentid}, 'y')); 2071 my $cidr = new NetAddr::IP $zname;2072 2071 $zname =~ s|\d*/\d+$||; 2073 2072 $page->param(address => ($webvar{address} ? $webvar{address} : $zname)); 2074 2073 $page->param(typelist => $dnsdb->getTypelist($webvar{revrec}, 2075 $webvar{type} || ($ cidr->{isv6}? $reverse_typemap{'AAAA+PTR'} : $reverse_typemap{'A+PTR'})));2074 $webvar{type} || ($zname =~ /:/ ? $reverse_typemap{'AAAA+PTR'} : $reverse_typemap{'A+PTR'}))); 2076 2075 } 2077 2076 # retrieve the right ttl instead of falling (way) back to the hardcoded system default
Note:
See TracChangeset
for help on using the changeset viewer.