nsupdate.html revision 5347c0fcb04eaea19d9f39795646239f487c6207
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User - Copyright (C) 2000-2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - This Source Code Form is subject to the terms of the Mozilla Public
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - License, v. 2.0. If a copy of the MPL was not distributed with this
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - file, You can obtain one at http://mozilla.org/MPL/2.0/.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews<a name="man.nsupdate"></a><div class="titlepage"></div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><span class="application">nsupdate</span> — Dynamic DNS update utility</p>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<div class="cmdsynopsis"><p><code class="command">nsupdate</code> [<code class="option">-d</code>] [<code class="option">-D</code>] [<code class="option">-L <em class="replaceable"><code>level</code></em></code>] [[<code class="option">-g</code>] | [<code class="option">-o</code>] | [<code class="option">-l</code>] | [<code class="option">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]keyname:secret</code></em></code>] | [<code class="option">-k <em class="replaceable"><code>keyfile</code></em></code>]] [<code class="option">-t <em class="replaceable"><code>timeout</code></em></code>] [<code class="option">-u <em class="replaceable"><code>udptimeout</code></em></code>] [<code class="option">-r <em class="replaceable"><code>udpretries</code></em></code>] [<code class="option">-R <em class="replaceable"><code>randomdev</code></em></code>] [<code class="option">-v</code>] [<code class="option">-T</code>] [<code class="option">-P</code>] [<code class="option">-V</code>] [filename]</p></div>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User<p><span class="command"><strong>nsupdate</strong></span>
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews is used to submit Dynamic DNS Update requests as defined in RFC 2136
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews to a name server.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews This allows resource records to be added or removed from a zone
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews without manually editing the zone file.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User A single update request can contain requests to add or remove more than
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User resource record.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Zones that are under dynamic control via
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="command"><strong>nsupdate</strong></span>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User or a DHCP server should not be edited by hand.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User Manual edits could
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User conflict with dynamic updates and cause data to be lost.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User The resource records that are dynamically added or removed with
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <span class="command"><strong>nsupdate</strong></span>
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User have to be in the same zone.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User Requests are sent to the zone's master server.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User This is identified by the MNAME field of the zone's SOA record.
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User Transaction signatures can be used to authenticate the Dynamic
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User DNS updates. These use the TSIG resource record type described
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User in RFC 2845 or the SIG(0) record described in RFC 2535 and
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews RFC 2931 or GSS-TSIG as described in RFC 3645.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User TSIG relies on
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User a shared secret that should only be known to
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="command"><strong>nsupdate</strong></span> and the name server.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews For instance, suitable <span class="type">key</span> and
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="type">server</span> statements would be added to
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <code class="filename">/etc/named.conf</code> so that the name server
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews can associate the appropriate secret key and algorithm with
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User the IP address of the client application that will be using
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews TSIG authentication. You can use <span class="command"><strong>ddns-confgen</strong></span>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User to generate suitable configuration fragments.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="command"><strong>nsupdate</strong></span>
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews uses the <code class="option">-y</code> or <code class="option">-k</code> options
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User to provide the TSIG shared secret. These options are mutually exclusive.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews SIG(0) uses public key cryptography.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User To use a SIG(0) key, the public key must be stored in a KEY
6f1205897504b8f50b1785975482c995888dd630Tinderbox User record in a zone served by the name server.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews is switched on with the <code class="option">-g</code> flag. A
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User non-standards-compliant variant of GSS-TSIG used by Windows
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews 2000 can be switched on with the <code class="option">-o</code> flag.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User<div class="variablelist"><dl class="variablelist">
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews Debug mode. This provides tracing information about the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User update requests that are made and the replies received
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews from the name server.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews Extra debug mode.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews<dt><span class="term">-k <em class="replaceable"><code>keyfile</code></em></span></dt>
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews The file containing the TSIG authentication key.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews Keyfiles may be in two formats: a single file containing
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews a <code class="filename">named.conf</code>-format <span class="command"><strong>key</strong></span>
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews statement, which may be generated automatically by
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="command"><strong>ddns-confgen</strong></span>, or a pair of files whose names are
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews of the format <code class="filename">K{name}.+157.+{random}.key</code> and
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User <code class="filename">K{name}.+157.+{random}.private</code>, which can be
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews generated by <span class="command"><strong>dnssec-keygen</strong></span>.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User The <code class="option">-k</code> may also be used to specify a SIG(0) key used
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews to authenticate Dynamic DNS update requests. In this case, the key
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User specified is not an HMAC-MD5 key.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Local-host only mode. This sets the server address to
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User localhost (disabling the <span class="command"><strong>server</strong></span> so that the server
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User address cannot be overridden). Connections to the local server will
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User use a TSIG key found in <code class="filename">/var/run/named/session.key</code>,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User which is automatically generated by <span class="command"><strong>named</strong></span> if any
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews local master zone has set <span class="command"><strong>update-policy</strong></span> to
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews <span class="command"><strong>local</strong></span>. The location of this key file can be
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews overridden with the <code class="option">-k</code> option.
ad127d839d2e7aa542939a8a336691407e23397eMark Andrews<dt><span class="term">-L <em class="replaceable"><code>level</code></em></span></dt>
<dt><span class="term">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]keyname:secret</code></em></span></dt>
<em class="parameter"><code>keyname</code></em> <em class="parameter"><code>secret</code></em> pair.
<span class="command"><strong>[<span class="optional">update</span>] del[<span class="optional">ete</span>]</strong></span>
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
> prereq nxdomain nickname.example.com