c has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w #use strict; use Net::DNS; $res = new Net:DNS::RR; $query = $res->query("216.8.86.8","PTR"); if ($query) { foreach $rr ($query->answer) { next unless $rr->type eq "PTR"; print "ptrdname =", $rr->ptrdname, "\n"; # print $rr->address, "\n"; } } else { print "query failed: ", $res->errorstring, "\n"; }
however, I just dont think this is correct syntax. I may
be confusing some syntax that is proper for other Net::DNS
modules and not RR::PTR.
A point in the right direction will help. Please dont refer
me to the perldoc on these modules as the info contained there
is the same as on cpan.
humbly -c
Edit kudra, 2001-07-20 Changed title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: a href= (Net::DNS question)
by Graham (Deacon) on Jul 20, 2001 at 12:16 UTC | |
by c (Hermit) on Jul 20, 2001 at 17:13 UTC | |
by Graham (Deacon) on Jul 20, 2001 at 17:28 UTC |