|
sdns
low-level DNS library
|
#include <sdns.h>
Public Attributes | |
| char * | qname |
| RFC1035 - the domain name. | |
| uint16_t | qtype |
| RFC1035 - two octet, type of the query. | |
| uint16_t | qclass |
| RFC1035 - two octet, class of the query. | |
The structure of the question section of a DNS packet from Section4.1.2 RFC1035
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+