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