DNSGETZ

Synopsis

DNSGETZ [/?] [/BYIP[+|-]] [/SRV_SUPERDOMAINS[+|-]] [/SRV_SELF[+|-]] [/IP6ADDR[+|-]] [/IMPLICIT[+|-]] [/CLIENTIP[+|-]] [/CLIENTPORT[+|-]] server domain

Description

The DNSGETZ command sends a zone transfer request for the domain domain. It writes the zone information to its standard output, in source form ready to be compiled by the Zone Compile utility.

DNSGETZ locates servers from the server string supplied in the normal way, using domain as the service name, tcp as the transport name, and 53 as the well-known port number.

DNSGETZ issues an AXFR query for domain. It reads responses until the second SOA response is encountered.

DNSGETZ handles the so-called "compressed" response format (where multiple answers are given in a single response) and is capable of merging "glue" resource records for service, nameserver, and mailserver data, if provided in the response with the relevant SRV, NS, and MX resource record sets.

If all of the data for the zone are obtained successfully, DNSGETZ exits with a zero code. Otherwise it exits with a non-zero code.

Note: The zone transfer protocol is an inferior protocol for DNS database replication. It is not recommended for use on production systems. It is strongly recommended that the DNS database be replicated using other mechanisms.

The output of DNSGETZ is not to be taken to be the preferred or optimal form of DNS database source files. It is the best that can be pieced together after the fact when original DNS data have had to be mangled for transmission via the DNS "zone transfer" protocol. For the proper and preferred forms of DNS source file information, see the source file description.

Command-specific options


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