Hostname manipulation routines
List of Global Functions
Check - Check syntax of hostname entry (that is a domain name component, unqualified, without dots)
CheckDomain - Check syntax of domain entry
CheckFQ - Check syntax of fully qualified hostname
CurrentDomain - Retrieve currently set domain name
CurrentFQ - Retrieve currently set fully qualified hostname (uses hostname --fqdn)
CurrentHostname - Retrieve currently set (short) hostname
MergeFQ - Merge short hostname and domain to full-qualified host name
SplitFQ - Split FQ hostname to hostname and domain name
ValidDomain - describe a valid domain name
ValidFQ - describe a valid FQ host name
ValidHost - describe a valid host name
List of Global Variables
ValidChars - i18n characters in domain names are still not allowed
Check syntax of hostname entry (that is a domain name component, unqualified, without dots)
Function parameters
string host
Return value
boolean - true if correct
Check syntax of domain entry
Function parameters
string domain
Return value
boolean - true if correct
Check syntax of fully qualified hostname
Function parameters
string host
Return value
boolean - true if correct
Retrieve currently set fully qualified hostname (uses hostname --fqdn)
Return value
string - FQ hostname
Merge short hostname and domain to full-qualified host name
Function parameters
string hostname
string domain
Return value
string - FQ hostname