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 |
Message body not shown because it is not plain text.