Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

dnsResolve()(host)

The dnsResolve()() function resolves the IP address of the given host, typically from the URL. This function is useful if the JavaScript function has to do more advanced pattern matching than can be done with the existing functions.

Parameters

host is the host name to resolve. Resolves the given DNS host name into an IP address, and returns it in the dot-separated format as a string.

Return Value

dotted quad IP address as a string value

Example

The following example would return the string 198.95.249.79.

dnsResolve("home.example.com")