DNS Configuration and Management Manual (G06.27+, H06.05+, J06.03+)

BIND 9.x on the NonStop Server
HP DNS Configuration and Management Manual529432-003
2-11
dig
Remember, the default for both the master and slave for IXFR is yes.
dig
dig is a command line tool used to gather information from the DNS servers. dig
operates in two modes:
Simple interactive mode for a single query
Batch mode, which runs a query for each item in a list of several query lines
The syntax for DIG is:
See the dig man page for the description of the options for the dig command. (See
Table 2-1, OSS Commands to Access man Pages, on page 2-3 for information about
accessing the man pages.)
Examples: Using dig
Note. A BIND master name server that reloads an entire zone data file cannot compute the
differences between that zone and the previous zone. Nor can a BIND slave that gets a full
zone transfer figure out what changed between the new zone and the previous zone.
Therefore, to take full advantage of IXFR, you should modify your zone only by using dynamic
update and never edit the zone data file manually.
dig [@server] [options] domain [query-type] [query-class] [query-options]
Example 2-5. Using dig
$ dig @ fakir dns3.brazil.hp.com A IN
Note. You must always use fully qualified domain names as arguments to dig.
Example 2-6. Obtain the Latest List of Root Domain Servers
$ dig . ns
Example 2-7. Find the Name Servers for a Zone
$ dig @server domain ns
Example 2-8. Request all Records for a Zone From an Authoritative Server
$ dig @server domain axfr
Note. This command requires a zone transfer, which the server may disallow.