API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IDNSCONFIG_GETSERVERS()

Brew Release
Brew MP 1.0.2
See Also
Description
Retrieve the current DNS server list
Params
pIDNSConfig
[]:
[in] pointer to the IDNSConfig Interface of interest
pServers
[]:
[out] pointer to an array of *pwCount server addresses
pwCount
[]:
[in/out] on input, the max number of servers to may be written to pServers; on output, the actual number of servers that were written to pServers
Interface
Prototype
  •     int IDNSConfig_GetServers
        (
          IDNSConfig *pIDNSConfig,
          INSockAddr* pServers,
          uint16*     pwCount
        );
    
Return
  • AEE_SUCCESS: if the server address was filled in AEE_EMEMPTR: if pServer is not a valid pointer AEE_EFAILED: otherwise
Side Effect
  • None.
Comments
When a good response is received from a DNS server, that server is moved to the front of the server list, and will be the first used for the next query. The order of the servers returned by this method will reflect this preferred order.