HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)
n
nsupdate(1) nsupdate(1)
server servername port
Sends all dynamic update requests to the name server servername . When no
server statement is provided, nsupdate will send updates to the master server
of the correct zone. The MNAME field of that zone’s SOA record will identify the
master server for that zone. port is the port number on servername where the
dynamic update requests get sent. If no port number is specified, the default DNS
port number of 53 is used.
zone zonename
Specifies that all updates are to be made to the zone zonename.Ifno
zone state-
ment is provided,
nsupdate will attempt to determine the correct zone to update
based on the rest of the input.
prereq nxdomain domain-name
Requires that no resource record of any type exists with name domain-name .
prereq yxdomain domain-name
Requires that domain-name exists (has as at least one resource record, of any
type).
prereq nxrrset domain-name class type
Requires that no resource record exists of the specified type, class , and domain-
name.Ifclass is omitted,
IN (Internet) is assumed.
prereq yxrrset domain-name class type
This requires that a resource record of the specified type, class , and domain-name
must exist. If class is omitted,
IN (Internet) is assumed.
prereq yxrrset domain-name class type data...
The data from each set of prerequisites of this form sharing a common type, class,
and domain-name are combined to form a set of RRs (resource records). This set of
RRs must exactly match the set of RRs existing in the zone at the given type, class,
and domain-name . The data are written in the standard text representation of the
resource record’s RDATA.
update delete domain-name class type data...
Deletes any resource records named domain-name .Iftype and data is provided,
only matching resource records will be removed. The Internet class (IN) is assumed
if class is not supplied.
update add domain-name ttl class type data..
Adds a new resource record with the specified ttl, class and data.
local address port
Sends all dynamic update requests using the local address. When no local state-
ment is provided, nsupdate will send updates using an address and port chosen
by the system. port can additionally be used to set a specific port from where
requests are sent. If port number is not specified, the system will assign one.
key name secret
Specifies that all updates need to be TSIG signed using the keyname keysecret pair.
The key command overrides any key specified on the command line via -y or -k.
show Displays the current message, containing all the pre-requisites and updates
specified since the last send operation.
send Sends the current message. This is equivalent to entering a blank line.
EXAMPLES
The examples below show how
nsupdate could be used to insert and delete resource records from the
example.com zone. Notice that the input in each example contains a trailing blank line so that a group
of commands are sent as one dynamic update request to the master name server for example.com.
# nsupdate
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
>
HP-UX 11i Version 2: September 2004 − 2 − Hewlett-Packard Company Section 1−−691