I am new, What direction I should go...
I am trying to write a simple program that queries a server for a DNS address information, all in bytes.
What I expect to get is something like this:
$ dns www.amazon.com
Service: 53
Server: tamara.acs.oakland.edu
IP: 141.210.10.25
len: 32
65620100 00010000 00000000 03777777// query
06616d61 7a6f6e03 636f6d00 00010001
65628580 00010001 00000000 03777777// response
06616d61 7a6f6e03 636f6d00 00010001
c00c0001 00010000 003c0004 cfabb510
The two above section are the query and the response from amazone.com in byte.
I am trying it with a datagrampacket and datagramsocket methods. but I am not able to receive anything. Sending is ok but not receiving.
any help regarding where to start would be great.
thanks,

