Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

dnsDomainLevels()(host)

The dnsDomainLevels()() function finds the number of DNS levels (number of dots) in the URL host name.

Parameters

host is the host name from the URL.

Return Value

number (integer) of DNS domain levels.

Examples

dnsDomainLevels("www") returns 0.

dnsDomainLevels("www.example.com") returns 2.