nsupdate.docbook revision 6ad1eab597456687386f5e41d17d0bceeacef2d2
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User [<!ENTITY mdash "—">]>
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2004-2012, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Copyright (C) 2000-2003 Internet Software Consortium.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - Permission to use, copy, modify, and/or distribute this software for any
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews - purpose with or without fee is hereby granted, provided that the above
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - copyright notice and this permission notice appear in all copies.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - PERFORMANCE OF THIS SOFTWARE.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refentryinfo>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </refentryinfo>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refentrytitle><application>nsupdate</application></refentrytitle>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <refname><application>nsupdate</application></refname>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <refpurpose>Dynamic DNS update utility</refpurpose>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </refnamediv>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <holder>Internet Software Consortium.</holder>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <refsynopsisdiv>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <cmdsynopsis>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-L <replaceable class="parameter">level</replaceable></option></arg>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></option></arg>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <arg><option>-k <replaceable class="parameter">keyfile</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-t <replaceable class="parameter">timeout</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-u <replaceable class="parameter">udptimeout</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-r <replaceable class="parameter">udpretries</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <arg><option>-R <replaceable class="parameter">randomdev</replaceable></option></arg>
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User </cmdsynopsis>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </refsynopsisdiv>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User is used to submit Dynamic DNS Update requests as defined in RFC 2136
6478b87fd23bcd3ab74c25b261021fe19a239c4fTinderbox User to a name server.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater This allows resource records to be added or removed from a zone
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User without manually editing the zone file.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User A single update request can contain requests to add or remove more than
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User resource record.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User Zones that are under dynamic control via
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User or a DHCP server should not be edited by hand.
481870b95fee976541f4fe455c0ef2dbeab3ec7aTinderbox User Manual edits could
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User conflict with dynamic updates and cause data to be lost.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User The resource records that are dynamically added or removed with
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User have to be in the same zone.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Requests are sent to the zone's master server.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User This is identified by the MNAME field of the zone's SOA record.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User Transaction signatures can be used to authenticate the Dynamic
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater DNS updates. These use the TSIG resource record type described
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User in RFC 2845 or the SIG(0) record described in RFC 2535 and
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User RFC 2931 or GSS-TSIG as described in RFC 3645.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User TSIG relies on
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User a shared secret that should only be known to
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <command>nsupdate</command> and the name server.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User <type>server</type> statements would be added to
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User <filename>/etc/named.conf</filename> so that the name server
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User can associate the appropriate secret key and algorithm with
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews the IP address of the client application that will be using
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User TSIG authentication. You can use <command>ddns-confgen</command>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User to generate suitable configuration fragments.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User uses the <option>-y</option> or <option>-k</option> options
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews to provide the TSIG shared secret. These options are mutually exclusive.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews SIG(0) uses public key cryptography.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User To use a SIG(0) key, the public key must be stored in a KEY
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews record in a zone served by the name server.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User is switched on with the <option>-g</option> flag. A
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews non-standards-compliant variant of GSS-TSIG used by Windows
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User 2000 can be switched on with the <option>-o</option> flag.
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <variablelist>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater Debug mode. This provides tracing information about the
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews update requests that are made and the replies received
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User from the name server.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User </varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User Extra debug mode.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <varlistentry>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <term>-k <replaceable class="parameter">keyfile</replaceable></term>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews The file containing the TSIG authentication key.
<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