Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: DNS script troubles

by phenom (Chaplain)
on Apr 28, 2012 at 00:48 UTC ( #967749=note: print w/replies, xml ) Need Help??

in reply to DNS script troubles

You should spell out what errors you're getting. Also, you're missing a colon on this line:
print "+ ptr mx txt A AAAA KX IN records:\n"
And you didn't declare $packet or $res.

Replies are listed 'Best First'.
Re^2: DNS script troubles
by perlaintdead (Scribe) on Apr 28, 2012 at 00:50 UTC
    I get A windows dialog box: the perl interpreter has stoped woking
      Have you *declared* the 2 variables phenom told you about: $packet, $res?

      I suspect that is your problem.

        still crashes

        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 -host\n\t-host - domai +n name\n"; exit(); } print "+ ptr mx txt A AAAA KX IN records:\n"; my $packet = Net::DNS::Packet->new($Host, "PTR", "MX", "TXT", "A", "AA +AA"); print $packet->string;
      Did you fix those errors I mentioned in the previous post?

      Also, I don't believe there's a "query" method in that module. Are you thinking of a different module? Try re-reading the documentation for that module.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967749]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-11-18 16:16 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.