otDnsBrowseResponseGetHostAddress() function
Gets the host IPv6 address from a DNS browse (service instance enumeration) response. MUST only be used from `otDnsBrowseCallback`. The response can include zero or more IPv6 address records. @p aIndex can be used to iterate through the list of addresses. Index zero gets the first address and so on. When we reach end of the list, `OT_ERROR_NOT_FOUND` is returned.
Arguments
aResponse
A pointer to the response.
aHostName
The host name to get the address (MUST NOT be NULL).
aIndex
The address record index to retrieve.
aAddress
A pointer to a IPv6 address to output the address (MUST NOT be NULL).
aTtl
A pointer to an `uint32_t` to output TTL for the address. It can be NULL if caller does not want to get the TTL.
Return value
OT_ERROR_NONE The address was read successfully. OT_ERROR_NOT_FOUND No address record for @p aHostname in @p aResponse at @p aIndex. OT_ERROR_PARSE Could not parse the records in the @p aResponse.