On Mon, May 17, 2010 at 7:48 PM, Nathan Gibbs <nat...@cmpublishers.com> 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    -    au...@schwer.us    -    http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to