Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monk
I have declared a variableNow what i want is when the perl program sends this domain name in a dns message, it should convert it as 0377777706676F6F676C6503636F6D00. Otherwise the Wireshark can't recognise it as www.google.commy $domain_name= "www.google.com";
Is there any function in perl to convert the domain name format data into the hexa format as shown above?
Plz suggest me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to convert the domain name format data into hexadecimal format?
by moritz (Cardinal) on Jul 21, 2008 at 12:28 UTC | |
|
Re: How to convert the domain name format data into hexadecimal format?
by shmem (Chancellor) on Jul 21, 2008 at 14:01 UTC | |
by Anonymous Monk on Jul 22, 2008 at 06:10 UTC | |
by shmem (Chancellor) on Jul 22, 2008 at 08:28 UTC |