validateFqdn function

Check a full qualified domain name to ensure it conforms to the rules outlined in RFC 1035.

Description

The validateFqdn function checks a full qualified domain name (FQDN) to ensure that it conforms to the rules specified in RFC 1035. Note that the Discovery Management Console does not display non-conforming FQDNs.

Function syntax

validateFqdn (fqdn)

Parameters

fqdn
The fully qualified domain name

Returns

The function returns the following values:

  • Non-zero if the FQDN is valid
  • 0 if the FQDN is not valid

Exceptions

None.