It can be called multiple times to construct a request message consisting of multiple question records.
int IDNS_AddQuestion(IDNS *pIDNS, AEEDNSQType nType, AEEDNSClass nClass, const char *pszDomain);
- AEE_SUCCESS: The question was appended to the request message.
All other values indicate failure, in which case the DNS request is unmodified. In this context, the following error codes have special meaning:
AEE_EFAILED: The new question would make the DNS message exceed the maximum size (512 bytes for DNS over UDP). AEE_EBADPARM: The domain name is mal-formed. AEE_NET_EINVAL: IDNS is not in the proper state for questions to be added. Questions cannot be added after Start() has been called.
Other errors might be returned; the caller should verify that IDNS_AddQuestion() succeeded.