Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://700747]
help
Chatterbox?
Discipulus Syracusis anicula deos cotidie obsecrabat ut Dionysius..

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2016-12-05 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.