Internet Direct (Indy) Version 9.0.2 Beta
IsHostname
Indicates if a value is a Host name and not an IP address.

function IsHostname(S: String): Boolean;
Parameters
S: String
Value to be examined as a host name.

Returns
Boolean - True when the value is not an IP Address.

Description
IsHostname is a Boolean function that indicates if the value in S is a valid host name, but not an IP address in dotted-decimal format.