perlaintdead has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I'v been having trouble with this code:
print "Web-Sorrow (Extra Tool) DNSpull v1"; use Net::DNS; use Getopt::Long; use warnings; use strict; my $Host = "none"; GetOptions("host=s" => \$Host); # usage if($Host eq "none"){ print "Usage: perl DNSpull.pl -host example.com\n\t-host - domai +n name\n"; exit(); } print "+ ptr mx txt A AAAA KX IN records:\n" $packet = Net::DNS::Packet->new(); $res = $packet->query($Host, "PTR", "MX", "TXT", "A", "AAAA", "KX", "I +N"); print $res->string;
it crashes ever time i run it. and I have installed all the Modules
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DNS script troubles
by phenom (Chaplain) on Apr 28, 2012 at 00:48 UTC | |
by perlaintdead (Scribe) on Apr 28, 2012 at 00:50 UTC | |
by Cristoforo (Curate) on Apr 28, 2012 at 01:02 UTC | |
by perlaintdead (Scribe) on Apr 28, 2012 at 01:21 UTC | |
by phenom (Chaplain) on Apr 28, 2012 at 12:36 UTC | |
| |
by phenom (Chaplain) on Apr 28, 2012 at 00:59 UTC |
Back to
Seekers of Perl Wisdom