Defined in file: hzDNS.h
hzDNS - DnsQuery class. Facilitates DNS lookup
Constructors/Detructors
| hzDNS* | hzDNS | (void) | |
| void | ~hzDNS | (void) |
Public Methods:
| uint32_t | NoAdditional | (void) | |
| uint32_t | NoAnswers | (void) | |
| uint32_t | NoAuth | (void) | |
| hzEcode | Query | (const char* dom)DnsType eType, | Do the actual DNS query. |
| hzEcode | QueryA | (const char* dom) | |
| hzEcode | QueryMX | (const char* dom) | |
| hzEcode | QueryPTR | (const char* dom) | |
| hzEcode | QuerySPF | (const char* dom) | |
| hzEcode | QueryTXT | (const char* dom) | |
| hzEcode | SelectMX | (hzList<hzResServer>& ServersMX)const char* dom, | Select mail servers for a domain |
| void | Show | (hzChain& Result) | Output search results to the supplied hzChain Returns: None |
| void | _clear | (void) | Resets the hzDNS instance back to an unpopulated state. Note this does not delete the operating buffer. This is only deleted by the destructor. Arguments: None Returns: None |
| hzString | _procraw | (unsigned char** cpPtr) | Obtain a null terminated server name from the DNS response buffer The supplied argument is a pointer to the pointer into the DNS response buffer. The string extraction process is as follows:- We assume we are one a byte which either describes a lenght or a location. A byte of 0xC0 or greater states that the next byte specifies a location (within the first 240 bytes of the buffer) where the string can be found. A byte lower than this indicates the length of the string which can be found directly after this byte. Note that a string can be comprised of a mix of earlier strings (0xC0) and new strings. |
Member Variables:
| uint16_t | m_DNA | Exactly | |
| hzChain | m_Error | For error reporting | |
| uint32_t | m_Resv | Reserved | |
| hzList<DnsRec> | m_arAdd | Additional section | |
| hzList<DnsRec> | m_arAns | Answer section | |
| hzList<DnsRec> | m_arAut | Authorative section | |
| hzList<DnsRec> | m_arQus | Question section | |
| unsigned char* | m_cpDns | Buffer for DNS output | |
| uint16_t | m_qID | So we can check this against ID of query |