DNSGETNS [/?] [/SERVERIP address] [/SERVER name] [/SERVICE name] [/WELLKNOWNPORT port] [/CLIENTIP address] [/CLIENTPORT port] [/IP6[+|-]] [/IMPLICIT[+|-]] [/SRV_SUPERDOMAINS[+|-]] [/SRV_SELF[+|-]] [/FETCHGLUE[+|-]] [/IP6ADDR[+|-]] [/B[+|-]] domain


The DNSGETNS command obtains the IP addresses, ports, priorities, and weights of the content DNS servers for the domain domain. It prints them all, one per line, to its standard output.

DNSGETNS performs the standard server lookup procedure that would be performed by the "zone transfer" client utility, printing the results of the server lookup rather than contacting the servers for actual "zone transfer" service. Its service name, transport name, and well-known port number are the same as those used by the "zone transfer" client.

Lookups are performed by contacting a proxy DNS server. DNSGETNS uses the same DNS client library as applications (and the other service client utilities in the Internet Utilities) use, and so the proxy DNS server contacted is by default the same proxy DNS server as all applications use.

Although DNSGETNS can thus be reconfigured to talk to other DNS servers and to bind the client ends of its sockets to specific IP addresses and port numbers using the DNS client library's ordinary configuration environment variables, for convenience the /SERVERIP, /WELLKNOWNPORT, /SERVER, /SERVICE, /CLIENTIP, and /CLIENTPORT command-line options can also be used to do the same thing, overriding the configuration environment variables.

If all IP addresses are obtained successfully, DNSGETNS exits with a zero code. Otherwise it exits with a non-zero code.

Command-specific options


Use a brief display format, listing just the IP addresses without the priority, weight, and port numbers.

This form of the output is suitable for redirecting into the "Content\@" file or a per-domain override file used by the Resolving Caching Proxy Server.

The Internet Utilities are © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.