Technical data

Configuring and Managing BIND
5.3 Configuring the BIND Server (BIND 8.1)
Table 5–10 shows the valid update commands for
NSUPDATE
.
Table 5–10 NSUPDATE Commands
Command Description
prereq yxrset domain_name type
[rdata]
Makes the presence of an RR set of type owned
by domain_name a prerequisite to performing
the update.
prereq nxrrset
Makes the nonexistence of an RR set of type
owned by domain_name a prerequisite to
performing the update specified in successive
update commands.
prereq yxdomain domain_name
Makes the existence of the specified domain_
name a prerequisite to performing the update.
prereq nxdomain
Makes the nonexistence of the specified
domain name a prerequisite to performing
the update
update delete domain_name [type]
[rdata]
Deletes the specified domain name, or, if type
is also specified, deletes the specified RR set,
or, if rdata is also specified, deletes the record
matching domain_name, type, and rdata.
update add domain_name ttl [class]
type rdata
Adds the specified record to the zone. Note
that the TTL, in addition to the type and
resource-record-specific data, must be included
but class is optional and defaults to IN.
NSUPDATE has two modes: interactive and noninteractive. In noninteractive
mode, you supply the updates in a file. Data in the file must be in the following
format:
class section name ttl type rdata
In this format:
class Is any one of the following opcodes:
update
,
zone
,
prereq
.
section Is any one of the following opcodes:
add
,
delete
,
nxdomain
,
yxdomain
,
nxrrset
,
yxrrset
.
name Is the name of the entry being added.
ttl Is time to live (in seconds) for this entry. After this time period, the
name server will no longer serve the entry.
type Specifies the RR type (for example, A, CNAME, NS, MX, TXT).
rdata Specifies the data appropriate for the RR type being updated.
The following example shows how to use NSUPDATE in the noninteractive mode.
$ TYPE NSUPD.TXT
update delete www.nads.zn.
update add www.nads.zn. 60 CNAME ivy18.nads.zn
$ NSUPDATE NSUPD.TXT
In interactive mode, you supply data in the format shown for noninteractive mode
in response to each NSUPDATE prompt.
The following example shows how to use the NSUPDATE utility in interactive
mode. The Resolver debug mode is enabled.
5–22 Configuring and Managing BIND