Skip Menu |

This queue is for tickets about the Net-Nslookup CPAN distribution.

Report information
The Basics
Id: 11247
Status: resolved
Priority: 0/
Queue: Net-Nslookup

People
Owner: darren [...] cpan.org
Requestors: tim_carr [...] i2.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: PTRDNAME error in Net-Nslookup
Hi - I'm running the latest CPAN version of nslookup. When I run this command: my $name = nslookup(host => $maybeip, type => PTR); on this address - 206.103.147.91, I get the following error message: *** *** WARNING!!! The program has attempted to call the method *** "ptrdname" for the following RR object: *** *** 91.147.103.206.in-addr.arpa. 3600 IN CNAME 206.103.147.91.cybermood.net. *** *** This object doesn't have a method "ptrdname". 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/lib/perl5/site_perl/5.8.5/Net/Nslookup.pm line 158 I also get the same error message for ip address 68.17.53.62. I'm running perl 5.8.5 on Fedora Core 3.
This error is fixed in the upcoming version 2.0.
Your example doesn't seem to have a PTR record, so nslookup now behaves correctly: $ perl -MNet::Nslookup -wle 'print "PTR record = ", nslookup(host => "206.103.147.91", type => "PTR")' PTR record = Calling it with an address that does have a PTR record works, also: $ perl -MNet::Nslookup -wle 'print "PTR record = ", nslookup(host => "74.125.159.103", type => "PTR")' PTR record = yi-in-f103.1e100.net