Hi everyone, i'm a university student and i have been asked to write a dns query program in C.
We have to create the packet header by manipulating the bits of a 12 character array.
I have searched the internet and come up woth nothing so far to help me.
Unfortunately, i have got nothing with regards to creating the query header so far.
Im sure that if i can get some help on the first few things i can work out the rest, or at least be able to progress, but at the moment i dont really know where to start.
![]()
So far i have created the array, and memset it to all '0's
I know then i have to change individual bits to show the identification, whether it is a query or response, etc etc.
Im just not sure how i go about changing the bits in each character of the array.
Any help would be greatly appreciated![]()



LinkBack URL
About LinkBacks




, a few further questions though.