Subject: | SRV RR's and name_2wire |
Hi! Running my DNSSEC walker on the ripe.net zone results in errors:
***
*** WARNING!!! The program has attempted to call the method
*** "name_2wire" for the following RR object:
***
*** _jabber._tcp.conference.ripe.net. 900 IN SRV 30 30 5269 jabber.ripe.net
***
*** This object doesn not have a method "name_2wire". THIS IS A BUG
*** IN THE CALLING SOFTWARE, which has incorrectly assumed that
*** the object would be of a particular type. The calling
*** software should check the type of each RR object before
*** calling any of its methods.
***
*** Net::DNS has returned undef to the caller.
***
at /usr/local/bin/walker line 284
Line 284 says:
if ($sigrr{$tag}->verify(\@answer,
$keyrr{$sigrr{$tag}->keytag}))
I.e., it uses Net::DNS::SEC which presumably uses Net::DNS internally.
This appear to be due to a typo, and the following patch fix the problem for me.
Thanks!
--- SRV.pm~ 2005-07-31 16:27:07.000000000 +0200
+++ SRV.pm 2005-09-22 12:51:08.000000000 +0200
@@ -68,7 +68,7 @@
if (exists $self->{'priority'}) {
$rdata .= pack('n3', @{$self}{qw(priority weight port)});
- $rdata .= $self->name_2wire($self->{'target'});
+ $rdata .= $self->_name2wire($self->{'target'});
}
return $rdata;