Hello,
I have some questions about the DNS message format:
1. What goes in the "identification" field? Can you put the socket id?
2. In the question section, is the domain name stored in a multiple of 32 bits?
3. How do you represent the message format in a structure or what is the best way to do so? I have the following:
But I don't know what to do for the others.Code:typedef struct header_t { ushort id; ushort parameter; ushort num_questions; ushort num_answers; ushort num_authority; ushort num_additional; } header;
Thanks,
Yasir



LinkBack URL
About LinkBacks


