ot::Dns::Client::AddressResponse::GetHostName() const method
Gets the host name associated with an address resolution DNS response. MUST only be used from `AddressCallback`.
Arguments
aNameBuffer
A buffer to char array to output the host name.
aNameBufferSize
The size of @p aNameBuffer.
Return value
kErrorNone The host name was read successfully. kErrorNoBufs The name does not fit in @p aNameBuffer.