nsupdate.docbook revision ca6e60cb704c4c8eea1385a9fbef3eaa476eca28
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
bec154197d3d640b0d5b416cd5218ea58dca5d3aTinderbox User "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews [<!ENTITY mdash "—">]>
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - Copyright (C) 2004-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Copyright (C) 2000-2003 Internet Software Consortium.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Permission to use, copy, modify, and/or distribute this software for any
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - purpose with or without fee is hereby granted, provided that the above
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - copyright notice and this permission notice appear in all copies.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews <refentryinfo>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refentryinfo>
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater <refentrytitle><application>nsupdate</application></refentrytitle>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refname><application>nsupdate</application></refname>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refpurpose>Dynamic DNS update utility</refpurpose>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refnamediv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </copyright>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </copyright>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-L <replaceable class="parameter">level</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></option></arg>
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <arg><option>-k <replaceable class="parameter">keyfile</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-t <replaceable class="parameter">timeout</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-u <replaceable class="parameter">udptimeout</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-r <replaceable class="parameter">udpretries</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <arg><option>-R <replaceable class="parameter">randomdev</replaceable></option></arg>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </cmdsynopsis>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </refsynopsisdiv>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews is used to submit Dynamic DNS Update requests as defined in RFC 2136
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to a name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This allows resource records to be added or removed from a zone
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews without manually editing the zone file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews A single update request can contain requests to add or remove more than
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews resource record.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Zones that are under dynamic control via
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews or a DHCP server should not be edited by hand.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Manual edits could
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews conflict with dynamic updates and cause data to be lost.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The resource records that are dynamically added or removed with
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews have to be in the same zone.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Requests are sent to the zone's master server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This is identified by the MNAME field of the zone's SOA record.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User Transaction signatures can be used to authenticate the Dynamic
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User DNS updates. These use the TSIG resource record type described
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User in RFC 2845 or the SIG(0) record described in RFC 2535 and
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User RFC 2931 or GSS-TSIG as described in RFC 3645.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews TSIG relies on
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews a shared secret that should only be known to
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User <command>nsupdate</command> and the name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <type>server</type> statements would be added to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <filename>/etc/named.conf</filename> so that the name server
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews can associate the appropriate secret key and algorithm with
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the IP address of the client application that will be using
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews TSIG authentication. You can use <command>ddns-confgen</command>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to generate suitable configuration fragments.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews uses the <option>-y</option> or <option>-k</option> options
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to provide the TSIG shared secret. These options are mutually exclusive.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews SIG(0) uses public key cryptography.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews To use a SIG(0) key, the public key must be stored in a KEY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews record in a zone served by the name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews is switched on with the <option>-g</option> flag. A
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews non-standards-compliant variant of GSS-TSIG used by Windows
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 2000 can be switched on with the <option>-o</option> flag.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <variablelist>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Debug mode. This provides tracing information about the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews update requests that are made and the replies received
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews from the name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Extra debug mode.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term>-k <replaceable class="parameter">keyfile</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The file containing the TSIG authentication key.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Keyfiles may be in two formats: a single file containing
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews a <filename>named.conf</filename>-format <command>key</command>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews statement, which may be generated automatically by
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <command>ddns-confgen</command>, or a pair of files whose names are
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews of the format <filename>K{name}.+157.+{random}.key</filename> and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <filename>K{name}.+157.+{random}.private</filename>, which can be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The <option>-k</option> may also be used to specify a SIG(0) key used
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to authenticate Dynamic DNS update requests. In this case, the key
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews specified is not an HMAC-MD5 key.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Local-host only mode. This sets the server address to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews localhost (disabling the <command>server</command> so that the server
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews address cannot be overridden). Connections to the local server will
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews use a TSIG key found in <filename>/var/run/named/session.key</filename>,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews which is automatically generated by <command>named</command> if any
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews local master zone has set <command>update-policy</command> to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <command>local</command>. The location of this key file can be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews overridden with the <option>-k</option> option.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term>-L <replaceable class="parameter">level</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Set the logging debug level. If zero, logging is disabled.
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term>-p <replaceable class="parameter">port</replaceable></term>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Set the port to use for connections to a name server. The
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews default is 53.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater <varlistentry>
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews Print the list of private BIND-specific resource record
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews types whose format is understood
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews </varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <varlistentry>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <term>-r <replaceable class="parameter">udpretries</replaceable></term>
<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