Changeset 608 for trunk/dns.cgi
- Timestamp:
- 04/04/14 16:32:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.