Sun Java System Web Proxy Server 4.0.2 2005Q4 Administration Guide

dnsResolve(host)

The dnsResolve() function resolves the IP address of the given host (typically from the URL). This 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.

Returns:

dotted quad IP address as a string value

Example:

The following example would return the string 198.95.249.79.

dnsResolve("home.example.com")