DNSv6
This module includes functions that control DNS communication.
Summary
Typedefs |
|
---|---|
otDnsQuery
|
typedefstruct otDnsQuery
This structure implements DNS Query parameters. |
otDnsResponseHandler)(void *aContext, const char *aHostname, otIp6Address *aAddress, uint32_t aTtl, otError aResult)
|
typedefvoid(*
This function pointer is called when a DNS response is received. |
Functions |
|
---|---|
otDnsClientQuery(otInstance *aInstance, const otDnsQuery *aQuery, otDnsResponseHandler aHandler, void *aContext)
|
This function sends a DNS query for AAAA (IPv6) record.
|
Structs |
|
---|---|
otDnsQuery |
This structure implements DNS Query parameters. |
Typedefs
otDnsResponseHandler
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.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
Functions
otDnsClientQuery
otError otDnsClientQuery( otInstance *aInstance, const otDnsQuery *aQuery, otDnsResponseHandler aHandler, void *aContext )
This function sends a DNS query for AAAA (IPv6) record.
This function is available only if feature OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE
is enabled.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
Macros
OT_DNS_DEFAULT_SERVER_IP
OT_DNS_DEFAULT_SERVER_IP "2001:4860:4860::8888"
Defines default DNS Server address - Google DNS.
OT_DNS_DEFAULT_SERVER_PORT
OT_DNS_DEFAULT_SERVER_PORT 53
Defines default DNS Server port.
OT_DNS_MAX_HOSTNAME_LENGTH
OT_DNS_MAX_HOSTNAME_LENGTH 62
Maximum allowed hostname length (maximum label size - 1 for compression).