HostnameJS - Global

Formats host names according to property settings.

Use with any server-side script when you need to format host names.

HostnameJS - format(String hostname, String source)

Formats the specified host name according to the property settings.

Table 1. Parameters
Name Type Description
hostname String The host name to format
source String The property settings source
Table 2. Returns
Type Description
String The system name


      
    

HostnameJS - getDomainName()

Gets the DNS domain name.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
String The domain name

var hjs = new HostnameJS();
hjs.getDomainName();

HostnameJS - getSysName()

Gets the current system name.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
String The system name

var hjs = new HostnameJS();
hjs.getSysName();