Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Replicating Net::DNS::Packet

by moritz (Cardinal)
on Jun 07, 2014 at 07:50 UTC ( #1089126=note: print w/replies, xml ) Need Help??


in reply to Replicating Net::DNS::Packet

A classic: Yes, even you can use CPAN

Anyway, it's actually pretty simple. Since all arguments are literals and thus constants, you install Net::DNS::Packet on one machine once, dump $dns_packet->data(), and use the resulting string by copy&paste wherever you want to use it.

Update: Small nit:

$dnspacket->header->ra(0); #Recursion Desired $dnspacket->header->rd(1); #Recursion Available

The comments are the wrong way around, the should be switched.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1089126]
help
Chatterbox?
[Your Mother]: Windows doesn't even recognize them as far as that goes.
[Lady_Aleena]: Your Mother, thanks. I had a feeling it would be no.
[Your Mother]: :P
[Lady_Aleena]: Your Mother, it is a good thing I am no on Windows.
[Lady_Aleena]: s/no/not/;
[Lady_Aleena]: My blasted web host will not put perl 5.22 in /usr/bin/perl, it is in /usr/local/cpanel/ 3rdparty/bin/perl
Lady_Aleena has been banging her head against this wall for years now with no success on breaking the wall.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-04-28 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (519 votes). Check out past polls.