PDA

View Full Version : dns query program


bulldog
16-02-2004, 19:10
I have to write a dns client for one of my uni courses.
It looks like a bit of a beast of a task.

I have to create the request and header and stuff, using bitwise operators, and im getting a bit lost. :eek:
I also have to decode the response and display the time to live, type, class etc

Ive done a bit of googleing and havnt really found anything that would help.

If anyone can help me, or point me in the direction of some help i would greatly appreciate it.

bulldog
20-02-2004, 00:03
maybe i should ask a more specific question

Does anyone know how to create a dns packet header, or at least know how to manipulate the bits inside variables, a character array for example.

pleeeeeeease:D