35 #ifndef OPENTHREAD_DNS_H_ 36 #define OPENTHREAD_DNS_H_ 55 #define OT_DNS_MAX_HOSTNAME_LENGTH 62 57 #define OT_DNS_DEFAULT_DNS_SERVER_IP "2001:4860:4860::8888" 58 #define OT_DNS_DEFAULT_DNS_SERVER_PORT 53 89 uint32_t aTtl,
otError aResult);
114 #endif // OPENTHREAD_DNS_H_ This structure represents an IPv6 address.
Definition: types.h:417
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
bool mNoRecursion
If cleared, it directs name server to pursue the query recursively.
Definition: dns.h:68
This file defines the types and structures used in the OpenThread library API.
void(* otDnsResponseHandler)(void *aContext, const char *aHostname, otIp6Address *aAddress, uint32_t aTtl, otError aResult)
This function pointer is called when a DNS response is received.
Definition: dns.h:88
This file defines the top-level OpenThread APIs related to message buffer and queues.
const char * mHostname
Identifies hostname to be found. It shall not change during resolving.
Definition: dns.h:66
struct otDnsQuery otDnsQuery
This structure implements DNS Query parameters.
const otMessageInfo * mMessageInfo
A reference to the message info related with DNS Server.
Definition: dns.h:67
This structure represents the local and peer IPv6 socket addresses.
Definition: types.h:436
This structure implements DNS Query parameters.
Definition: dns.h:64
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
otError otDnsClientQuery(otInstance *aInstance, const otDnsQuery *aQuery, otDnsResponseHandler aHandler, void *aContext)
This function sends a DNS query for AAAA (IPv6) record.