Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Good Morning!

I have a rather simple question. Does anyone have a function reference for the dnsResolve() function in Proxy Auto Configuration scripts? Or for that matter, a function reference for all the PAC functions? I'm looking for specifics, such as return types, error values, etc. Not examples of how to use it.

i.e. dnsResolve() returns string IP address on success or bool false on failure.

This is the closest I've found:

hosthostname to resolve
Resolves the given DNS hostname into an IP address, and returns it in the dot separated format as a string.

dnsResolve("")returns the string "".

But it doesn't list what is returned if it can't resolve it (does it return false? return original argument?)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Microsoft has a nice set of docs for the IPv6 Aware APIs.

The IPv4 APIs mostly operate the same way other then they do not support IPv6 addresses. Here is a list of changes.

Here is a link to the old Netscape specification of the PAC functions.

In any case I am pretty sure that if dnsResolve() doesn't get a useful value, then it returns an empty string.

share|improve this answer
Ah, the Microsoft link works quite well, thanks! I was already using the Netscape specification and it only listed the return value on success. – Neil Feb 14 '14 at 22:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.