Skip Menu |

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

Report information
The Basics
Id: 20857
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: rwfranks [...] acm.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.58
Fixed in: (no value)



Subject: Resolver query() treats empty or undef name as default domain
Calling resolver query() with undefined or empty string as argument is treated as query of default domain. Also get warnings from inside Base.pm. Demo script attached, gives following results: Net::DNS 0.58 Perl 5.008008 Linux 2.6.17-1.2157_FC5 i686 query( '' ) Q example.org. IN ANY NOERROR A example.org. 172800 IN NS B.IANA-SERVERS.NET. A example.org. 172800 IN NS A.IANA-SERVERS.NET. query( undef ) Use of uninitialized value in index at /home/rwf/perl/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm line 469. Use of uninitialized value in index at /home/rwf/perl/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm line 469. Q example.org. IN ANY NOERROR A example.org. 172800 IN NS B.IANA-SERVERS.NET. A example.org. 172800 IN NS A.IANA-SERVERS.NET.
Subject: DemoNullQuery
Download DemoNullQuery
application/octet-stream 649b

Message body not shown because it is not plain text.

Fixed in version 0.59