InternetAddress.toHostNameString

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

class InternetAddress
override const
string
toHostNameString
()

Return Value

Type: string

The FQDN corresponding to this InternetAddress, or null if the host name did not resolve.

Throws

AddressException on error.

Meta