Thread: DNS Client
View Single Post
Old Dec 13th, 2005, 6:23 PM   #1
Kazy
Newbie
 
Join Date: Sep 2005
Posts: 21
Rep Power: 0 Kazy is on a distinguished road
DNS Client

I'm trying to produce a simple (although its definately not very simple to code) DNS client that will resolve a domain name. My problem is, I get back data in binary. I've converted the binary bits into hex so I can at least figure out what I got back, now I'm trying to figure out how to change either the binary bits or the hex I created into something I can print regular values to the screen. I'm not sure if anyone is familiar with the RFC for DNS (http://www.ietf.org/rfc/rfc1035.txt), but does anyone know how I can convert binary/hex to something printf would be able to print out? My question may not be so clear, if so I'd be glad to give more info. Thanks!
Kazy is offline   Reply With Quote