nsupdate.html revision b68a2d272b958eb2c40cce59ee33e71c5f5f521b
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - Copyright (C) 2004-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - Copyright (C) 2000-2003 Internet Software Consortium.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - Permission to use, copy, modify, and/or distribute this software for any
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - purpose with or without fee is hereby granted, provided that the above
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - copyright notice and this permission notice appear in all copies.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro - PERFORMANCE OF THIS SOFTWARE.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<!-- $Id$ -->
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<a name="man.nsupdate"></a><div class="titlepage"></div>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<p><span class="application">nsupdate</span> — Dynamic DNS update utility</p>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<div class="cmdsynopsis"><p><code class="command">nsupdate</code> [<code class="option">-d</code>] [<code class="option">-D</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>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<p><span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro is used to submit Dynamic DNS Update requests as defined in RFC 2136
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro to a name server.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro This allows resource records to be added or removed from a zone
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro without manually editing the zone file.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro A single update request can contain requests to add or remove more than
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro resource record.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro Zones that are under dynamic control via
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro or a DHCP server should not be edited by hand.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro Manual edits could
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro conflict with dynamic updates and cause data to be lost.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro The resource records that are dynamically added or removed with
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro have to be in the same zone.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro Requests are sent to the zone's master server.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro This is identified by the MNAME field of the zone's SOA record.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro option makes
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro operate in debug mode.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro This provides tracing information about the update requests that are
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro made and the replies received from the name server.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro The <code class="option">-D</code> option makes <span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro report additional debugging information to <code class="option">-d</code>.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro The <code class="option">-L</code> option with an integer argument of zero or
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro higher sets the logging debug level. If zero, logging is disabled.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro Transaction signatures can be used to authenticate the Dynamic
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro DNS updates. These use the TSIG resource record type described
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro in RFC 2845 or the SIG(0) record described in RFC 2535 and
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro RFC 2931 or GSS-TSIG as described in RFC 3645. TSIG relies on
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro a shared secret that should only be known to
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span><strong class="command">nsupdate</strong></span> and the name server. Currently,
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro the only supported encryption algorithm for TSIG is HMAC-MD5,
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro which is defined in RFC 2104. Once other algorithms are
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro defined for TSIG, applications will need to ensure they select
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro the appropriate algorithm as well as the key when authenticating
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro each other. For instance, suitable <span class="type">key</span> and
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span class="type">server</span> statements would be added to
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <code class="filename">/etc/named.conf</code> so that the name server
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro can associate the appropriate secret key and algorithm with
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro the IP address of the client application that will be using
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro TSIG authentication. SIG(0) uses public key cryptography.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro To use a SIG(0) key, the public key must be stored in a KEY
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro record in a zone served by the name server.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro <span><strong class="command">nsupdate</strong></span> does not read
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro is switched on with the <code class="option">-g</code> flag. A
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro non-standards-compliant variant of GSS-TSIG used by Windows
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro 2000 can be switched on with the <code class="option">-o</code> flag.
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro<p><span><strong class="command">nsupdate</strong></span>
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro uses the <code class="option">-y</code> or <code class="option">-k</code> option
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro to provide the shared secret needed to generate a TSIG record
06e46062ef4f5f4b687cbafb4518fb123fe23920jbeloro for authenticating Dynamic DNS update requests, default type
[<span class="optional"><em class="parameter"><code>hmac:</code></em></span>]<em class="parameter"><code>keyname:secret.</code></em>
<em class="parameter"><code>keyname</code></em> <em class="parameter"><code>secret</code></em> pair.
<span><strong class="command">[<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