Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: DNS script troubles

by perlaintdead (Scribe)
on Apr 28, 2012 at 00:50 UTC ( #967750=note: print w/replies, xml ) Need Help??


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

I get A windows dialog box: the perl interpreter has stoped woking

Replies are listed 'Best First'.
Re^3: DNS script troubles
by Cristoforo (Deacon) on Apr 28, 2012 at 01:02 UTC
    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 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;
        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?

Re^3: DNS script troubles
by phenom (Chaplain) on Apr 28, 2012 at 00:59 UTC
    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967750]
help
Chatterbox?
[perldigious]: Being the ignorant one, my initial reaction to that is, "that's sort of a dick move, a lot of people like me expect column names like that to stay the same, why the hell would you change them like that for seemingly no good reason?"
[perldigious]: Or is my irritation/ frustration well founded?
[Corion]: perldigious: That seems to be more the export and likely it's the recipients of that export that like the titles changes
[Corion]: ... "changed"
[Corion]: I usually expect fixed header names, but am sometimes lenient in the order of columns. But changing the report titles often sounds to me as if you are not the sole consument of the export ;)
[shmem]: perldigious: as always - if it ain't broke, don't fix it. Ther must be a very compelling reason for changing column names in a database. Those are rare.
[Corion]: If you have whitespace in the column names in the database, whap the DBAs ;)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-05-25 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?