Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to create a DNS message in perl?

by busunsl (Vicar)
on Jul 29, 2008 at 08:10 UTC ( #700747=note: print w/ replies, xml ) Need Help??


in reply to How to create a DNS message in perl?

Use the unpack funtion to convert the name to hex:

$QNAME = unpack("H*", "www.google.com")

For more read:

perldoc -f unpack
and
perldoc -f pack


Comment on Re: How to create a DNS message in perl?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-05 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls