ot::Dns::Client::ResolveAddress() method
Sends an address resolution DNS query for AAAA (IPv6) record for a given host name. The @p aConfig can be nullptr. In this case the default config (from `GetDefaultConfig()`) will be used as the config for this query. In a non-nullptr @p aConfig, some of the fields can be left unspecified (value zero). The unspecified fields are then replaced by the values from the default config.
Arguments
aHostName
The host name for which to query the address (MUST NOT be `nullptr`).
aCallback
A callback function pointer to report the result of query.
aContext
A pointer to arbitrary context information passed to @p aCallback.
aConfig
The config to use for this query.
Return value
kErrorNone Successfully sent DNS query. kErrorNoBufs Failed to allocate retransmission data. kErrorInvalidArgs The host name is not valid format. kErrorInvalidState Cannot send query since Thread interface is not up.
ot::Dns::Client::ResolveAddress() calls 1 function:
![]()
ot::Dns::Client::ResolveAddress()
ot::Dns::Client::ResolveAddress() reads 2 variables and writes 3 variables:
![]()
ot::Dns::Client::ResolveAddress()