The dnswalk reports a missing A record when checking
in-addr.arpa zones if the name of the PTR is in the
folliwng format:
4.3.2.1.in-addr.arpa IN PTR someArecord.domain.com
I believe the script expects
4.3.2.1 IN PTR someArecord.domain.com
This "odd" format is created by Webmin BIND module,
which uses fullly "qualified" names.
I have made a quick and dirty modification to the
dnswalk perl scrip to handle this case. Here are the
changes to the matchaddrlist function.
sub matchaddrlist {
# Added by Edward Greenspan, to handle in-addr.arpa
# appended to the PTR record
local($param) = $_[0];
$param=~ s/.in-addr.arpa//;
local($match)=pack('C4', reverse(split(/
\./,$param,4)));
local($found)=0;
foreach $i (@addrs) {
$found=1 if ($i eq $match);
}
return $found;
}
I was wondering if it would be possible
to "productionize" this change, or if you already have
this addressed, I would like to get the updated
version of the code.
Please let me know if you will release a "bug" fix for
this issue, of if I should continue using my hack.
Thanks for this usefull application.
Edward Greenspan