Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

HostnameJS- Global

The HostnameJS script include provides methods to format host names according to property settings.

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

Parent Topic:Server API reference

HostnameJS - format(String hostname, String source)

Formats the specified host name according to the property settings.

NameTypeDescription
hostnameStringThe host name to format
sourceStringThe property settings source
TypeDescription
StringThe system name

HostnameJS - getDomainName()

Returns the DNS domain name.

NameTypeDescription
None  
TypeDescription
StringThe domain name
var hjs = new HostnameJS();
hjs.getDomainName();

HostnameJS - getSysName()

Returns the current system name.

NameTypeDescription
None  
TypeDescription
StringThe system name
var hjs = new HostnameJS();
hjs.getSysName();