Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Hostname resolution, DNS & DNS64 helper functions. More...
Go to the source code of this file.
Typedefs | |
typedef struct dnsServer * | dns_index |
Opaque dns_index type which holds the DNS server that was used for a request. More... | |
typedef void(* | dns_callback) (ca_error aError, const otIp6Address *aAddress, dns_index aIndex, void *aContext) |
The callback used to report results from the host resolution to the requesting layer. More... | |
Functions | |
void | DNS_Init (otInstance *aInstance) |
Initialise the DNS utilities. More... | |
ca_error | DNS_HostToIpv6 (otInstance *aInstance, char *host, dns_callback aCallback, void *aContext) |
Resolve a hostname to an IPv6 address, running DNS queries if necessary. More... | |
ca_error | DNS_AddServer (otIp6Address *aAddress, uint8_t aPreference, bool aUseDns64) |
Add a DNS server with the given preference, to be used for DNS requests. More... | |
void | DNS_RegisterServiceFail (dns_index aIndex) |
Register the fact that a DNS server returned an address that could not be contacted. More... | |
void | DNS_RegisterSuccess (dns_index aIndex) |
Register a successful use of a service resolved with DNS and increase the preference of the corresponding DNS server. More... | |
Hostname resolution, DNS & DNS64 helper functions.