InternetAddress.toHostNameString

string toHostNameString() const

Attempts to retrieve the host name as a fully qualified domain name.

Returns

The FQDN corresponding to this InternetAddress, or

null if the host name did not resolve.

Throws

AddressException on error.