| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "NSUPDATE" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9" |
| 32 |
.SH NAME |
| 33 |
nsupdate \- dynamic DNS update utility |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBnsupdate\fP [\fB\-d\fP] [\fB\-D\fP] [\fB\-i\fP] [\fB\-L\fP level] [ [\fB\-g\fP] | [\fB\-o\fP] | [\fB\-l\fP] | [\fB\-y\fP [hmac:]keyname:secret] | [\fB\-k\fP keyfile] ] [ [\fB\-S\fP] [\fB\-K\fP tlskeyfile] [\fB\-E\fP tlscertfile] [\fB\-A\fP tlscafile] [\fB\-H\fP tlshostname] [\-O] ] [\fB\-t\fP timeout] [\fB\-u\fP udptimeout] [\fB\-r\fP udpretries] [\fB\-v\fP] [\fB\-T\fP] [\fB\-P\fP] [\fB\-V\fP] [ [\fB\-4\fP] | [\fB\-6\fP] ] [filename] |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
\fBnsupdate\fP is used to submit Dynamic DNS Update requests, as defined in |
| 40 |
\fBRFC 2136\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2136\:.html>, to a name server. This allows resource records to be added or |
| 41 |
removed from a zone without manually editing the zone file. A single |
| 42 |
update request can contain requests to add or remove more than one |
| 43 |
resource record. |
| 44 |
.sp |
| 45 |
Zones that are under dynamic control via \fBnsupdate\fP or a DHCP server |
| 46 |
should not be edited by hand. Manual edits could conflict with dynamic |
| 47 |
updates and cause data to be lost. |
| 48 |
.sp |
| 49 |
The resource records that are dynamically added or removed with |
| 50 |
\fBnsupdate\fP must be in the same zone. Requests are sent to the |
| 51 |
zone\(aqs primary server, which is identified by the MNAME field of the |
| 52 |
zone\(aqs SOA record. |
| 53 |
.sp |
| 54 |
Transaction signatures can be used to authenticate the Dynamic DNS |
| 55 |
updates. These use the TSIG resource record type described in \fBRFC 2845\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2845\:.html>, |
| 56 |
the SIG(0) record described in \fBRFC 2535\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2535\:.html> and \fBRFC 2931\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2931\:.html>, or GSS\-TSIG as |
| 57 |
described in \fBRFC 3645\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3645\:.html>\&. |
| 58 |
.sp |
| 59 |
TSIG relies on a shared secret that should only be known to \fBnsupdate\fP |
| 60 |
and the name server. For instance, suitable \fBkey\fP and \fBserver\fP |
| 61 |
statements are added to \fB@sysconfdir@/named.conf\fP so that the name server |
| 62 |
can associate the appropriate secret key and algorithm with the IP |
| 63 |
address of the client application that is using TSIG |
| 64 |
authentication. \fBddns\-confgen\fP \%<#\:std-iscman-ddns-confgen> can generate suitable |
| 65 |
configuration fragments. \fBnsupdate\fP uses the \fB\-y\fP or \fB\-k\fP options |
| 66 |
to provide the TSIG shared secret; these options are mutually exclusive. |
| 67 |
.sp |
| 68 |
SIG(0) uses public key cryptography. To use a SIG(0) key, the public key |
| 69 |
must be stored in a KEY record in a zone served by the name server. |
| 70 |
.sp |
| 71 |
GSS\-TSIG uses Kerberos credentials. Standard GSS\-TSIG mode is switched |
| 72 |
on with the \fB\-g\fP flag. A non\-standards\-compliant variant of GSS\-TSIG |
| 73 |
used by Windows 2000 can be switched on with the \fB\-o\fP flag. |
| 74 |
.SH OPTIONS |
| 75 |
.INDENT 0.0 |
| 76 |
.TP |
| 77 |
.B \-4 |
| 78 |
This option sets use of IPv4 only. |
| 79 |
.UNINDENT |
| 80 |
.INDENT 0.0 |
| 81 |
.TP |
| 82 |
.B \-6 |
| 83 |
This option sets use of IPv6 only. |
| 84 |
.UNINDENT |
| 85 |
.INDENT 0.0 |
| 86 |
.TP |
| 87 |
.B \-A tlscafile |
| 88 |
This option specifies the file of the certificate authorities (CA) certificates |
| 89 |
(in PEM format) in order to verify the remote server TLS certificate when |
| 90 |
using DNS\-over\-TLS (DoT), to achieve Strict or Mutual TLS. When used, it will |
| 91 |
override the certificates from the global certificates store, which are |
| 92 |
otherwise used by default when \fB\-S\fP is enabled. This option can not |
| 93 |
be used in conjuction with \fB\-O\fP, and it implies \fB\-S\fP\&. |
| 94 |
.UNINDENT |
| 95 |
.INDENT 0.0 |
| 96 |
.TP |
| 97 |
.B \-C |
| 98 |
Overrides the default \fIresolv.conf\fP file. This is only intended for testing. |
| 99 |
.UNINDENT |
| 100 |
.INDENT 0.0 |
| 101 |
.TP |
| 102 |
.B \-d |
| 103 |
This option sets debug mode, which provides tracing information about the update |
| 104 |
requests that are made and the replies received from the name server. |
| 105 |
.UNINDENT |
| 106 |
.INDENT 0.0 |
| 107 |
.TP |
| 108 |
.B \-D |
| 109 |
This option sets extra debug mode. |
| 110 |
.UNINDENT |
| 111 |
.INDENT 0.0 |
| 112 |
.TP |
| 113 |
.B \-E tlscertfile |
| 114 |
This option sets the certificate(s) file for authentication for the |
| 115 |
DNS\-over\-TLS (DoT) transport to the remote server. The certificate |
| 116 |
chain file is expected to be in PEM format. This option implies \fB\-S\fP, |
| 117 |
and can only be used with \fB\-K\fP\&. |
| 118 |
.UNINDENT |
| 119 |
.INDENT 0.0 |
| 120 |
.TP |
| 121 |
.B \-g |
| 122 |
This option enables standard GSS\-TSIG mode. |
| 123 |
.UNINDENT |
| 124 |
.INDENT 0.0 |
| 125 |
.TP |
| 126 |
.B \-H tlshostname |
| 127 |
This option makes \fBnsupdate\fP use the provided hostname during remote |
| 128 |
server TLS certificate verification. Otherwise, the DNS server name |
| 129 |
is used. This option implies \fB\-S\fP\&. |
| 130 |
.UNINDENT |
| 131 |
.INDENT 0.0 |
| 132 |
.TP |
| 133 |
.B \-i |
| 134 |
This option forces interactive mode, even when standard input is not a terminal. |
| 135 |
.UNINDENT |
| 136 |
.INDENT 0.0 |
| 137 |
.TP |
| 138 |
.B \-k keyfile |
| 139 |
This option indicates the file containing the TSIG authentication key. Keyfiles may be in |
| 140 |
two formats: a single file containing a \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\-format \fBkey\fP |
| 141 |
statement, which may be generated automatically by \fBddns\-confgen\fP \%<#\:std-iscman-ddns-confgen>; |
| 142 |
or a pair of files whose names are of the format |
| 143 |
\fBK{name}.+157.+{random}.key\fP and |
| 144 |
\fBK{name}.+157.+{random}.private\fP, which can be generated by |
| 145 |
\fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&. The \fB\-k\fP option can also be used to specify a SIG(0) |
| 146 |
key used to authenticate Dynamic DNS update requests. In this case, |
| 147 |
the key specified is not an HMAC\-MD5 key. |
| 148 |
.UNINDENT |
| 149 |
.INDENT 0.0 |
| 150 |
.TP |
| 151 |
.B \-K tlskeyfile |
| 152 |
This option sets the key file for authenticated encryption for the |
| 153 |
DNS\-over\-TLS (DoT) transport with the remote server. The private key file is |
| 154 |
expected to be in PEM format. This option implies \fB\-S\fP, and can only |
| 155 |
be used with \fB\-E\fP\&. |
| 156 |
.UNINDENT |
| 157 |
.INDENT 0.0 |
| 158 |
.TP |
| 159 |
.B \-l |
| 160 |
This option sets local\-host only mode, which sets the server address to localhost |
| 161 |
(disabling the \fBserver\fP so that the server address cannot be |
| 162 |
overridden). Connections to the local server use a TSIG key |
| 163 |
found in \fB@runstatedir@/session.key\fP, which is automatically |
| 164 |
generated by \fBnamed\fP \%<#\:std-iscman-named> if any local \fBprimary\fP zone has set |
| 165 |
\fBupdate\-policy\fP to \fBlocal\fP\&. The location of this key file can be |
| 166 |
overridden with the \fB\-k\fP option. |
| 167 |
.UNINDENT |
| 168 |
.INDENT 0.0 |
| 169 |
.TP |
| 170 |
.B \-L level |
| 171 |
This option sets the logging debug level. If zero, logging is disabled. |
| 172 |
.UNINDENT |
| 173 |
.INDENT 0.0 |
| 174 |
.TP |
| 175 |
.B \-o |
| 176 |
This option is deprecated. Previously, it enabled a |
| 177 |
non\-standards\-compliant variant of GSS\-TSIG that was used by Windows |
| 178 |
2000. Since that OS is now long past its end of life, this option is |
| 179 |
now treated as a synonym for \fB\-g\fP\&. |
| 180 |
.UNINDENT |
| 181 |
.INDENT 0.0 |
| 182 |
.TP |
| 183 |
.B \-O |
| 184 |
This option enables Opportunistic TLS. When used, the remote peer\(aqs TLS |
| 185 |
certificate will not be verified. This option should be used for debugging |
| 186 |
purposes only, and it is not recommended to use it in production. This |
| 187 |
option can not be used in conjuction with \fB\-A\fP, and it implies |
| 188 |
\fB\-S\fP\&. |
| 189 |
.UNINDENT |
| 190 |
.INDENT 0.0 |
| 191 |
.TP |
| 192 |
.B \-p port |
| 193 |
This option sets the port to use for connections to a name server. The default is |
| 194 |
53. |
| 195 |
.UNINDENT |
| 196 |
.INDENT 0.0 |
| 197 |
.TP |
| 198 |
.B \-P |
| 199 |
This option prints the list of private BIND\-specific resource record types whose |
| 200 |
format is understood by \fBnsupdate\fP\&. See also the \fB\-T\fP option. |
| 201 |
.UNINDENT |
| 202 |
.INDENT 0.0 |
| 203 |
.TP |
| 204 |
.B \-r udpretries |
| 205 |
This option sets the number of UDP retries. The default is 3. If zero, only one update |
| 206 |
request is made. |
| 207 |
.UNINDENT |
| 208 |
.INDENT 0.0 |
| 209 |
.TP |
| 210 |
.B \-S |
| 211 |
This option indicates whether to use DNS\-over\-TLS (DoT) when querying |
| 212 |
name servers specified by \fBserver servername port\fP syntax in the input |
| 213 |
file, and the primary server discovered through a SOA request. When the |
| 214 |
\fB\-K\fP and \fB\-E\fP options are used, then the specified TLS |
| 215 |
client certificate and private key pair are used for authentication |
| 216 |
(Mutual TLS). This option implies \fB\-v\fP\&. |
| 217 |
.UNINDENT |
| 218 |
.INDENT 0.0 |
| 219 |
.TP |
| 220 |
.B \-t timeout |
| 221 |
This option sets the maximum time an update request can take before it is aborted. The |
| 222 |
default is 300 seconds. If zero, the timeout is disabled for TCP mode. For UDP mode, |
| 223 |
the option \fB\-u\fP takes precedence over this option, unless the option \fB\-u\fP |
| 224 |
is set to zero, in which case the interval is computed from the \fB\-t\fP timeout interval |
| 225 |
and the number of UDP retries. For UDP mode, the timeout can not be disabled, and will |
| 226 |
be rounded up to 1 second in case if both \fB\-t\fP and \fB\-u\fP are set to zero. |
| 227 |
.UNINDENT |
| 228 |
.INDENT 0.0 |
| 229 |
.TP |
| 230 |
.B \-T |
| 231 |
This option prints the list of IANA standard resource record types whose format is |
| 232 |
understood by \fBnsupdate\fP\&. \fBnsupdate\fP exits after the lists |
| 233 |
are printed. The \fB\-T\fP option can be combined with the \fB\-P\fP |
| 234 |
option. |
| 235 |
.sp |
| 236 |
Other types can be entered using \fBTYPEXXXXX\fP where \fBXXXXX\fP is the |
| 237 |
decimal value of the type with no leading zeros. The rdata, if |
| 238 |
present, is parsed using the UNKNOWN rdata format, (<backslash> |
| 239 |
<hash> <space> <length> <space> <hexstring>). |
| 240 |
.UNINDENT |
| 241 |
.INDENT 0.0 |
| 242 |
.TP |
| 243 |
.B \-u udptimeout |
| 244 |
This option sets the UDP retry interval. The default is 3 seconds. If zero, the |
| 245 |
interval is computed from the timeout interval and number of UDP |
| 246 |
retries. |
| 247 |
.UNINDENT |
| 248 |
.INDENT 0.0 |
| 249 |
.TP |
| 250 |
.B \-v |
| 251 |
This option specifies that TCP should be used even for small update requests. By default, \fBnsupdate\fP uses |
| 252 |
UDP to send update requests to the name server unless they are too |
| 253 |
large to fit in a UDP request, in which case TCP is used. TCP may |
| 254 |
be preferable when a batch of update requests is made. |
| 255 |
.UNINDENT |
| 256 |
.INDENT 0.0 |
| 257 |
.TP |
| 258 |
.B \-V |
| 259 |
This option prints the version number and exits. |
| 260 |
.UNINDENT |
| 261 |
.INDENT 0.0 |
| 262 |
.TP |
| 263 |
.B \-y [hmac:]keyname:secret |
| 264 |
This option sets the literal TSIG authentication key. \fBkeyname\fP is the name of the key, |
| 265 |
and \fBsecret\fP is the base64 encoded shared secret. \fBhmac\fP is the |
| 266 |
name of the key algorithm; valid choices are \fBhmac\-md5\fP, |
| 267 |
\fBhmac\-sha1\fP, \fBhmac\-sha224\fP, \fBhmac\-sha256\fP, \fBhmac\-sha384\fP, or |
| 268 |
\fBhmac\-sha512\fP\&. If \fBhmac\fP is not specified, the default is |
| 269 |
\fBhmac\-md5\fP, or if MD5 was disabled, \fBhmac\-sha256\fP\&. |
| 270 |
.sp |
| 271 |
NOTE: Use of the \fB\-y\fP option is discouraged because the shared |
| 272 |
secret is supplied as a command\-line argument in clear text. This may |
| 273 |
be visible in the output from ps1 or in a history file maintained by |
| 274 |
the user\(aqs shell. |
| 275 |
.UNINDENT |
| 276 |
.SH INPUT FORMAT |
| 277 |
.sp |
| 278 |
\fBnsupdate\fP reads input from \fBfilename\fP or standard input. Each |
| 279 |
command is supplied on exactly one line of input. Some commands are for |
| 280 |
administrative purposes; others are either update instructions or |
| 281 |
prerequisite checks on the contents of the zone. These checks set |
| 282 |
conditions that some name or set of resource records (RRset) either |
| 283 |
exists or is absent from the zone. These conditions must be met if the |
| 284 |
entire update request is to succeed. Updates are rejected if the |
| 285 |
tests for the prerequisite conditions fail. |
| 286 |
.sp |
| 287 |
Every update request consists of zero or more prerequisites and zero or |
| 288 |
more updates. This allows a suitably authenticated update request to |
| 289 |
proceed if some specified resource records are either present or missing from |
| 290 |
the zone. A blank input line (or the \fBsend\fP command) causes the |
| 291 |
accumulated commands to be sent as one Dynamic DNS update request to the |
| 292 |
name server. |
| 293 |
.sp |
| 294 |
The command formats and their meanings are as follows: |
| 295 |
.INDENT 0.0 |
| 296 |
.TP |
| 297 |
.B \fBserver servername port\fP |
| 298 |
This command sends all dynamic update requests to the name server \fBservername\fP\&. |
| 299 |
When no server statement is provided, \fBnsupdate\fP sends updates |
| 300 |
to the primary server of the correct zone. The MNAME field of that |
| 301 |
zone\(aqs SOA record identify the primary server for that zone. |
| 302 |
\fBport\fP is the port number on \fBservername\fP where the dynamic |
| 303 |
update requests are sent. If no port number is specified, the default |
| 304 |
DNS port number of 53 is used. |
| 305 |
.sp |
| 306 |
\fBNote:\fP |
| 307 |
.INDENT 7.0 |
| 308 |
.INDENT 3.5 |
| 309 |
This command has no effect when GSS\-TSIG is in use. |
| 310 |
.UNINDENT |
| 311 |
.UNINDENT |
| 312 |
.TP |
| 313 |
.B \fBlocal address port\fP |
| 314 |
This command sends all dynamic update requests using the local \fBaddress\fP\&. When |
| 315 |
no local statement is provided, \fBnsupdate\fP sends updates using |
| 316 |
an address and port chosen by the system. \fBport\fP can also |
| 317 |
be used to force requests to come from a specific port. If no port number |
| 318 |
is specified, the system assigns one. |
| 319 |
.TP |
| 320 |
.B \fBzone zonename\fP |
| 321 |
This command specifies that all updates are to be made to the zone \fBzonename\fP\&. |
| 322 |
If no \fBzone\fP statement is provided, \fBnsupdate\fP attempts to |
| 323 |
determine the correct zone to update based on the rest of the input. |
| 324 |
.TP |
| 325 |
.B \fBclass classname\fP |
| 326 |
This command specifies the default class. If no \fBclass\fP is specified, the default |
| 327 |
class is \fBIN\fP\&. |
| 328 |
.TP |
| 329 |
.B \fBttl seconds\fP |
| 330 |
This command specifies the default time\-to\-live, in seconds, for records to be added. The value |
| 331 |
\fBnone\fP clears the default TTL. |
| 332 |
.TP |
| 333 |
.B \fBkey hmac:keyname secret\fP |
| 334 |
This command specifies that all updates are to be TSIG\-signed using the |
| 335 |
\fBkeyname\fP\-\fBsecret\fP pair. If \fBhmac\fP is specified, it sets |
| 336 |
the signing algorithm in use. The default is \fBhmac\-md5\fP; if MD5 |
| 337 |
was disabled, the default is \fBhmac\-sha256\fP\&. The \fBkey\fP command overrides any key |
| 338 |
specified on the command line via \fB\-y\fP or \fB\-k\fP\&. |
| 339 |
.TP |
| 340 |
.B \fBgsstsig\fP |
| 341 |
This command uses GSS\-TSIG to sign the updates. This is equivalent to specifying |
| 342 |
\fB\-g\fP on the command line. |
| 343 |
.TP |
| 344 |
.B \fBoldgsstsig\fP |
| 345 |
This command is deprecated and will be removed in a future release. |
| 346 |
Previously, it caused \fBnsupdate\fP to use the Windows 2000 version of |
| 347 |
GSS\-TSIG to sign updates. It is now treated as a synonym for \fBgsstsig\fP\&. |
| 348 |
.TP |
| 349 |
.B \fBrealm [realm_name]\fP |
| 350 |
When using GSS\-TSIG, this command specifies the use of \fBrealm_name\fP rather than the default realm |
| 351 |
in \fBkrb5.conf\fP\&. If no realm is specified, the saved realm is |
| 352 |
cleared. |
| 353 |
.TP |
| 354 |
.B \fBcheck\-names [boolean]\fP |
| 355 |
This command turns on or off check\-names processing on records to be added. |
| 356 |
Check\-names has no effect on prerequisites or records to be deleted. |
| 357 |
By default check\-names processing is on. If check\-names processing |
| 358 |
fails, the record is not added to the UPDATE message. |
| 359 |
.TP |
| 360 |
.B \fBcheck\-svbc [boolean]\fP |
| 361 |
This command turns on or off check\-svcb processing on records to be added. |
| 362 |
Check\-svcb has no effect on prerequisites or records to be deleted. |
| 363 |
By default check\-svcb processing is on. If check\-svcb processing |
| 364 |
fails, the record is not added to the UPDATE message. |
| 365 |
.TP |
| 366 |
.B \fBlease time [keytime]\fP |
| 367 |
Set the EDNS Update Lease (UL) option to value to \fBtime\fP and |
| 368 |
optionally also set the key lease time to \fBkeytime\fP in seconds. |
| 369 |
If \fBtime\fP is \fBnone\fP the lease times are cleared. |
| 370 |
.TP |
| 371 |
.B \fBprereq nxdomain domain\-name\fP |
| 372 |
This command requires that no resource record of any type exist with the name |
| 373 |
\fBdomain\-name\fP\&. |
| 374 |
.TP |
| 375 |
.B \fBprereq yxdomain domain\-name\fP |
| 376 |
This command requires that \fBdomain\-name\fP exist (as at least one resource |
| 377 |
record, of any type). |
| 378 |
.TP |
| 379 |
.B \fBprereq nxrrset domain\-name class type\fP |
| 380 |
This command requires that no resource record exist of the specified \fBtype\fP, |
| 381 |
\fBclass\fP, and \fBdomain\-name\fP\&. If \fBclass\fP is omitted, IN (Internet) |
| 382 |
is assumed. |
| 383 |
.TP |
| 384 |
.B \fBprereq yxrrset domain\-name class type\fP |
| 385 |
This command requires that a resource record of the specified \fBtype\fP, |
| 386 |
\fBclass\fP and \fBdomain\-name\fP exist. If \fBclass\fP is omitted, IN |
| 387 |
(internet) is assumed. |
| 388 |
.TP |
| 389 |
.B \fBprereq yxrrset domain\-name class type data\fP |
| 390 |
With this command, the \fBdata\fP from each set of prerequisites of this form sharing a |
| 391 |
common \fBtype\fP, \fBclass\fP, and \fBdomain\-name\fP are combined to form |
| 392 |
a set of RRs. This set of RRs must exactly match the set of RRs |
| 393 |
existing in the zone at the given \fBtype\fP, \fBclass\fP, and |
| 394 |
\fBdomain\-name\fP\&. The \fBdata\fP are written in the standard text |
| 395 |
representation of the resource record\(aqs RDATA. |
| 396 |
.sp |
| 397 |
Note RDATA which is empty (e.g. APL with an zero length rdata) |
| 398 |
needs to be entered using \fB\e# 0\fP form. |
| 399 |
.TP |
| 400 |
.B \fBupdate delete domain\-name ttl class type data\fP |
| 401 |
This command deletes any resource records named \fBdomain\-name\fP\&. If \fBtype\fP and |
| 402 |
\fBdata\fP are provided, only matching resource records are removed. |
| 403 |
The Internet class is assumed if \fBclass\fP is not supplied. The |
| 404 |
\fBttl\fP is ignored, and is only allowed for compatibility. |
| 405 |
.sp |
| 406 |
Note RDATA which is empty (e.g. APL with an zero length rdata) |
| 407 |
needs to be entered using \fB\e# 0\fP form. |
| 408 |
.TP |
| 409 |
.B \fBupdate add domain\-name ttl class type data\fP |
| 410 |
This command adds a new resource record with the specified \fBttl\fP, \fBclass\fP, and |
| 411 |
\fBdata\fP\&. |
| 412 |
.sp |
| 413 |
Note RDATA which is empty (e.g. APL with an zero length rdata) |
| 414 |
needs to be entered using \fB\e# 0\fP form. |
| 415 |
.TP |
| 416 |
.B \fBshow\fP |
| 417 |
This command displays the current message, containing all of the prerequisites and |
| 418 |
updates specified since the last send. |
| 419 |
.TP |
| 420 |
.B \fBsend\fP |
| 421 |
This command sends the current message. This is equivalent to entering a blank |
| 422 |
line. |
| 423 |
.TP |
| 424 |
.B \fBanswer\fP |
| 425 |
This command displays the answer. |
| 426 |
.TP |
| 427 |
.B \fBdebug\fP |
| 428 |
This command turns on debugging. |
| 429 |
.TP |
| 430 |
.B \fBversion\fP |
| 431 |
This command prints the version number. |
| 432 |
.TP |
| 433 |
.B \fBhelp\fP |
| 434 |
This command prints a list of commands. |
| 435 |
.UNINDENT |
| 436 |
.sp |
| 437 |
Lines beginning with a semicolon (;) are comments and are ignored. |
| 438 |
.SH EXAMPLES |
| 439 |
.sp |
| 440 |
The examples below show how \fBnsupdate\fP can be used to insert and |
| 441 |
delete resource records from the \fBexample.com\fP zone. Notice that the |
| 442 |
input in each example contains a trailing blank line, so that a group of |
| 443 |
commands is sent as one dynamic update request to the primary name |
| 444 |
server for \fBexample.com\fP\&. |
| 445 |
.INDENT 0.0 |
| 446 |
.INDENT 3.5 |
| 447 |
.sp |
| 448 |
.EX |
| 449 |
# nsupdate |
| 450 |
> update delete oldhost.example.com A |
| 451 |
> update add newhost.example.com 86400 A 172.16.1.1 |
| 452 |
> send |
| 453 |
.EE |
| 454 |
.UNINDENT |
| 455 |
.UNINDENT |
| 456 |
.sp |
| 457 |
Any A records for \fBoldhost.example.com\fP are deleted, and an A record |
| 458 |
for \fBnewhost.example.com\fP with IP address 172.16.1.1 is added. The |
| 459 |
newly added record has a TTL of 1 day (86400 seconds). |
| 460 |
.INDENT 0.0 |
| 461 |
.INDENT 3.5 |
| 462 |
.sp |
| 463 |
.EX |
| 464 |
# nsupdate |
| 465 |
> prereq nxdomain nickname.example.com |
| 466 |
> update add nickname.example.com 86400 CNAME somehost.example.com |
| 467 |
> send |
| 468 |
.EE |
| 469 |
.UNINDENT |
| 470 |
.UNINDENT |
| 471 |
.sp |
| 472 |
The prerequisite condition tells the name server to verify that there are |
| 473 |
no resource records of any type for \fBnickname.example.com\fP\&. If there |
| 474 |
are, the update request fails. If this name does not exist, a CNAME for |
| 475 |
it is added. This ensures that when the CNAME is added, it cannot |
| 476 |
conflict with the long\-standing rule in \fBRFC 1034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1034\:.html> that a name must not |
| 477 |
exist as any other record type if it exists as a CNAME. (The rule has |
| 478 |
been updated for DNSSEC in \fBRFC 2535\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2535\:.html> to allow CNAMEs to have RRSIG, |
| 479 |
DNSKEY, and NSEC records.) |
| 480 |
.SH FILES |
| 481 |
.INDENT 0.0 |
| 482 |
.TP |
| 483 |
.B \fB/etc/resolv.conf\fP |
| 484 |
Used to identify the default name server |
| 485 |
.TP |
| 486 |
.B \fB@runstatedir@/session.key\fP |
| 487 |
Sets the default TSIG key for use in local\-only mode |
| 488 |
.TP |
| 489 |
.B \fBK{name}.+157.+{random}.key\fP |
| 490 |
Base\-64 encoding of the HMAC\-MD5 key created by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&. |
| 491 |
.TP |
| 492 |
.B \fBK{name}.+157.+{random}.private\fP |
| 493 |
Base\-64 encoding of the HMAC\-MD5 key created by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&. |
| 494 |
.UNINDENT |
| 495 |
.SH SEE ALSO |
| 496 |
.sp |
| 497 |
\fBRFC 2136\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2136\:.html>, \fBRFC 3007\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3007\:.html>, \fBRFC 2104\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2104\:.html>, \fBRFC 2845\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2845\:.html>, \fBRFC 1034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1034\:.html>, \fBRFC 2535\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2535\:.html>, \fBRFC 2931\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2931\:.html>, |
| 498 |
\fBnamed(8)\fP \%<#\:std-iscman-named>, \fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, \fBtsig\-keygen(8)\fP \%<#\:std-iscman-tsig-keygen>\&. |
| 499 |
.SH BUGS |
| 500 |
.sp |
| 501 |
The TSIG key is redundantly stored in two separate files. This is a |
| 502 |
consequence of \fBnsupdate\fP using the DST library for its cryptographic |
| 503 |
operations, and may change in future releases. |
| 504 |
.SH Author |
| 505 |
Internet Systems Consortium |
| 506 |
.SH Copyright |
| 507 |
2026, Internet Systems Consortium |
| 508 |
.\" End of generated man page. |