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!