is_local()


Verifies if the specified host name or IPv4 address maps to a localhost.

Syntax

is_local(object)

Parameter

Parameter

Definition

object

FQDN, IPv4 address, or short name of the host computer.

Description

The is_local() function returns TRUE if the specified object (FQDN, IPv4 address, or short name of the host computer) maps to the localhost, otherwise returns FALSE.

Example

The following example uses the is_local() function to determine if the PSL object is a localhost:

object = "test.abc.com"
if (is_local(object)) {
print(object," is a localhost.\n");
}

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*