in reply to How to create a DNS message in perl?
So in your case, you need something like
$QNAME="\03www\06google\03com\00;"
Note that this matches what you see in wireshark if you run a DNS query from the command line and look at the hex dump of the packet (especially note the presence and values of the length bytes).
Updated:Add note to pay attention to the length bytes in wireshark dump.
|
---|