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