nsupdate: Subcommand mode

The following subcommands can be used in the nsupdate command shell. nsupdate reads commands from its standard input. Each command is supplied on exactly one line of input. Some commands are for administrative purposes. The others are either update instructions or prerequisite checks on the contents of the zone.

Format

Read syntax diagramSkip visual syntax diagram
Start nsupdate subcommand mode

>>-nsupdate--Enter---------------------------------------------><

Read syntax diagramSkip visual syntax diagram
Subsequent subcommand entry

   .---------------------------------.   
   V                                 |   
>>---+----------------------+--Enter-+-------------------------><
     +-quit-----------------+            
     +-prereq--+-nxdomain-+-+            
     |         +-yxdomain-+ |            
     |         +-nxrrset--+ |            
     |         '-yxrrset--' |            
     +-server---------------+            
     +-send-----------------+            
     +-show-----------------+            
     +-update--+-add----+---+            
     |         '-delete-'   |            
     '-zone-----------------'            

Parameters

The following subcommands can be used in the nsupdate command shell. Some of these subcommands make prerequisite checks on the contents of the zone. These checks set conditions that some name or set of resource records (RRset) either exists or is absent from the zone. These conditions must be met if the entire update request is to succeed. Updates are rejected if the tests for the prerequisite conditions fail.

Every update request consists of 0 or more prerequisites and 0 or more updates. This allows a suitably authenticated update request to proceed if some specified resource records are present or missing from the zone. A blank input line causes the accumulated commands to be sent as one Dynamic DNS update request to the name server.

quit
Quits the program.
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. If class is omitted, IN (Internet) is assumed. See the z/OS Communications Server: IP Configuration Reference for detailed information about valid classes and types.
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. See the z/OS Communications Server: IP Configuration Reference for detailed information about valid classes and types.
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 an RRset. This RRset must exactly match the RRset existing in the zone at the given type, class and domain-name. The data is written in the standard text representation of the resource record's RDATA. See the z/OS Communications Server: IP Configuration Reference for detailed information about valid classes and types.
server servername [port]
Specifies the server name or IP address where all dynamic update requests are sent. This can be an IPv4 or an IPv6 address or a name that resolves to an IPv4 or IPv6 address. When no server statement is provided, nsupdate sends updates to the master server of the correct zone. The latter capability, like use of a server name instead of IP address, is assuming nsupdate can find resolver data to connect to a name server.

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 is 53.

send
Sends update to server.
show
Shows update to be sent.
update delete domain-name [class] [type [data...]]
Deletes any resource records named domain-name. If type and data is provided, only matching resource records are removed. If class is omitted, IN (Internet) is assumed.
update add domain-name ttl [class] type data..
Adds a new resource record with the specified ttl, class, type and data. See the z/OS Communications Server: IP Configuration Reference for detailed information about valid classes and types.
zone zonename
Specifies that all updates are to be made to the zone zonename. If no zone statement is provided, nsupdate will attempt to determine the correct zone to update based on the rest of the input.