Internet Direct (Indy) Version 9.0.2 Beta
DomainName
Returns the domain name in a host address.

function DomainName(AHost: String): String;
Parameters
AHost: String
Host address to be used.

Returns
String - Domain name from the internet address.

Description
DomainName is a String function that returns the domain name portion of a host name, including the '.'