On Mon, May 17, 2010 at 7:48 PM, Nathan Gibbs <[email protected]> wrote: > * Augie Schwer wrote: >> my $res = Net::DNS::Resolver->new; >> my $que = $res->query($tldnsname,'A'); >> if ( $que ) > When there is no A record if ( !$que ) is always true. > So I never had to actually check for the A record.
Yes, query should return 'undef' when there are no answers. -- Augie Schwer - [email protected] - http://schwer.us Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072 _______________________________________________ mon mailing list [email protected] http://linux.kernel.org/mailman/listinfo/mon
