nsupdate.docbook revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User - Copyright (C) 2000-2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - This Source Code Form is subject to the terms of the Mozilla Public
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater - License, v. 2.0. If a copy of the MPL was not distributed with this
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - file, You can obtain one at http://mozilla.org/MPL/2.0/.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews<!-- Converted by db4-upgrade version 1.0 -->
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.nsupdate">
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <refentryinfo>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refentryinfo>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <refentrytitle><application>nsupdate</application></refentrytitle>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <refnamediv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refname><application>nsupdate</application></refname>
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson <refpurpose>Dynamic DNS update utility</refpurpose>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </refnamediv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews </copyright>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </copyright>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refsynopsisdiv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-d</option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-D</option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">level</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-g</option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-o</option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-l</option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">keyfile</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">timeout</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-u <replaceable class="parameter">udptimeout</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-r <replaceable class="parameter">udpretries</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-R <replaceable class="parameter">randomdev</replaceable></option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-v</option></arg>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <arg choice="opt" rep="norepeat"><option>-T</option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg choice="opt" rep="norepeat"><option>-P</option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg choice="opt" rep="norepeat"><option>-V</option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </cmdsynopsis>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </refsynopsisdiv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refsection><info><title>DESCRIPTION</title></info>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein is used to submit Dynamic DNS Update requests as defined in RFC 2136
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein to a name server.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein This allows resource records to be added or removed from a zone
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson without manually editing the zone file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein A single update request can contain requests to add or remove more than
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein resource record.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Zones that are under dynamic control via
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein or a DHCP server should not be edited by hand.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Manual edits could
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein conflict with dynamic updates and cause data to be lost.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein The resource records that are dynamically added or removed with
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein have to be in the same zone.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Requests are sent to the zone's master server.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein This is identified by the MNAME field of the zone's SOA record.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Transaction signatures can be used to authenticate the Dynamic
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein DNS updates. These use the TSIG resource record type described
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein in RFC 2845 or the SIG(0) record described in RFC 2535 and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein RFC 2931 or GSS-TSIG as described in RFC 3645.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein TSIG relies on
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein a shared secret that should only be known to
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <command>nsupdate</command> and the name server.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <type>server</type> statements would be added to
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <filename>/etc/named.conf</filename> so that the name server
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein can associate the appropriate secret key and algorithm with
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein the IP address of the client application that will be using
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein TSIG authentication. You can use <command>ddns-confgen</command>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein to generate suitable configuration fragments.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein uses the <option>-y</option> or <option>-k</option> options
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein to provide the TSIG shared secret. These options are mutually exclusive.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt SIG(0) uses public key cryptography.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt To use a SIG(0) key, the public key must be stored in a KEY
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein record in a zone served by the name server.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein is switched on with the <option>-g</option> flag. A
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein non-standards-compliant variant of GSS-TSIG used by Windows
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein 2000 can be switched on with the <option>-o</option> flag.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt </refsection>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <variablelist>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson Debug mode. This provides tracing information about the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt update requests that are made and the replies received
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt from the name server.
<term>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></term>
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
> prereq nxdomain nickname.example.com