Name

Hostname::Check — Check syntax of hostname entry (that is a domain name component, unqualified, without dots)

Synopsis

Import Hostname;
boolean Hostname::Check ( string  host );

Parameters

string host

hostname

Return Value

boolean

true if correct

See

  • rfc1123, rfc2396 and obsoleted rfc1034