Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-02-21 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (307 votes). Check out past polls.