Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: DNS script troubles

by perlaintdead (Scribe)
on Apr 28, 2012 at 01:21 UTC ( [id://967755]=note: print w/replies, xml ) Need Help??


in reply to Re^3: DNS script troubles
in thread DNS script troubles

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 DNSpull.pl -host example.com\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;

Replies are listed 'Best First'.
Re^5: DNS script troubles
by phenom (Chaplain) on Apr 28, 2012 at 12:36 UTC
    It's not crashing for me anymore, but it's not returning much information either. I assume you're trying to get information that would be returned from the "dig" command (such as dig www.example.com ANY), but I don't get that response from this module.

    Frankly, I can't make heads or tails of the module's documentation. Is there a reason you chose this one over (e.g.) Net::DNS?

      I AM using Net::DNS and im trying to make a simple dns script (I guess kinda of like dig)

        (anonymous monk was me. I forgot to login)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://967755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-23 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found