You are on page 1of 3

nsupdate nsupdate [options] [filename]

System administration command. Interactively submit dynamic

DNS update requests to a nameserver. Use nsupdate to add or

remove records from a zone without manually editing the zone file.

Commands may be entered interactively or read from filename. An

update message is built from multiple commands, some establishing

prerequisites, some adding or deleting resource records. Messages

are executed as a single transaction. A blank line or the send

command will send the current message. Lines beginning with a

semicolon are treated as comments. For additional information on

dynamic DNS updates, see RFC 2136

Options

-d Print additional tracing information usable for debugging.

-k keyfile

Read encrypted transaction signature key from keyfile. The

key should be encrypted using the HMAC-MD5 algorithm.

Keyfiles are generated by the dnssec-keygen command.

-r n

Retry UDP n times. Default is 3.

-t seconds

Set request timeout. Default is 300 seconds. 0 disables timeout.

-u seconds

Set UDP retry interval. Default is 3 seconds. If 0, then interval

is computed from the time out and retry values.

-v Use TCP instead of UDP to send update requests.

-y keyname:secret

Generate transaction signature from specified keyname and

secret.
Interactive commands

answer

Print answer.

class classname

Set default class to classname instead of the normal default IN.

key keyname secret

Generate transaction signature from specified keyname and

secret. This command overrides command-line options -k or -y.

local address [port]

Use local address and, if specified, port to send updates.

prereq criteria

Specify prerequisites for updating a domain. Provide the

criteria in one of the following forms:

nxdomain domain-name

Perform updates only if there are no preexisting records

with the name domain-name.

nxrrset domain-name [class] type

Perform updates only if there is no preexisting record of

the specified type and class for domain-name. When no

class is given, IN is assumed.

yxdomain domain-name

Perform updates only if there is a preexisting record with

the name domain-name.

yxrrset domain-name [class] type [data]

Perform updates only if there is a preexisting record of

the specified type and class for domain-name. If data is

given, the RDATA of the specified resource must match it

exactly. When no class is given, IN is assumed.

send
Send the current message. Same as entering a blank line

You might also like