nsupdate.docbook revision 5fa46bc91672ef5737aee6f99763161511566c24
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte [<!ENTITY mdash "—">]>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - Copyright (C) 2000-2003 Internet Software Consortium.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - Permission to use, copy, modify, and/or distribute this software for any
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - purpose with or without fee is hereby granted, provided that the above
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - copyright notice and this permission notice appear in all copies.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte - PERFORMANCE OF THIS SOFTWARE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte<!-- $Id$ -->
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng <refentryinfo>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </refentryinfo>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <refentrytitle><application>nsupdate</application></refentrytitle>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <refnamediv>
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng <refname><application>nsupdate</application></refname>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <refpurpose>Dynamic DNS update utility</refpurpose>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </refnamediv>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </copyright>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </copyright>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <refsynopsisdiv>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <cmdsynopsis>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-k <replaceable class="parameter">keyfile</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-t <replaceable class="parameter">timeout</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-u <replaceable class="parameter">udptimeout</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-r <replaceable class="parameter">udpretries</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <arg><option>-R <replaceable class="parameter">randomdev</replaceable></option></arg>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </cmdsynopsis>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </refsynopsisdiv>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte is used to submit Dynamic DNS Update requests as defined in RFC 2136
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte to a name server.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte This allows resource records to be added or removed from a zone
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte without manually editing the zone file.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte A single update request can contain requests to add or remove more than
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte resource record.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Zones that are under dynamic control via
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte or a DHCP server should not be edited by hand.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Manual edits could
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte conflict with dynamic updates and cause data to be lost.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte The resource records that are dynamically added or removed with
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte have to be in the same zone.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Requests are sent to the zone's master server.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte This is identified by the MNAME field of the zone's SOA record.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte option makes
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng operate in debug mode.
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng This provides tracing information about the update requests that are
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng made and the replies received from the name server.
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng The <option>-D</option> option makes <command>nsupdate</command>
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng report additional debugging information to <option>-d</option>.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte The <option>-L</option> option with an integer argument of zero or
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte higher sets the logging debug level. If zero, logging is disabled.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Transaction signatures can be used to authenticate the Dynamic
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte DNS updates. These use the TSIG resource record type described
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte in RFC 2845 or the SIG(0) record described in RFC 2535 and
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte RFC 2931 or GSS-TSIG as described in RFC 3645. TSIG relies on
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte a shared secret that should only be known to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <command>nsupdate</command> and the name server. Currently,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte the only supported encryption algorithm for TSIG is HMAC-MD5,
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng which is defined in RFC 2104. Once other algorithms are
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng defined for TSIG, applications will need to ensure they select
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng the appropriate algorithm as well as the key when authenticating
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng each other. For instance, suitable <type>key</type> and
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng <filename>/etc/named.conf</filename> so that the name server
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng can associate the appropriate secret key and algorithm with
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng the IP address of the client application that will be using
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng TSIG authentication. SIG(0) uses public key cryptography.
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng To use a SIG(0) key, the public key must be stored in a KEY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte record in a zone served by the name server.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte is switched on with the <option>-g</option> flag. A
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte non-standards-compliant variant of GSS-TSIG used by Windows
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte 2000 can be switched on with the <option>-o</option> flag.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uses the <option>-y</option> or <option>-k</option> option
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte to provide the shared secret needed to generate a TSIG record
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for authenticating Dynamic DNS update requests, default type
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HMAC-MD5. These options are mutually exclusive.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte When the <option>-y</option> option is used, a signature is
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte generated from
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <optional><parameter>hmac:</parameter></optional><parameter>keyname:secret.</parameter>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <parameter>keyname</parameter> is the name of the key, and
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <parameter>secret</parameter> is the base64 encoded shared secret.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Use of the <option>-y</option> option is discouraged because the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte shared secret is supplied as a command line argument in clear text.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte This may be visible in the output from
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <citerefentry>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte </citerefentry>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte or in a history file maintained by the user's shell.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <option>-k</option> option, <command>nsupdate</command> reads
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng the shared secret from the file <parameter>keyfile</parameter>.
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng Keyfiles may be in two formats: a single file containing
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng a <filename>named.conf</filename>-format <command>key</command>
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng statement, which may be generated automatically by
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng <command>ddns-confgen</command>, or a pair of files whose names are
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng of the format <filename>K{name}.+157.+{random}.key</filename> and
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng <filename>K{name}.+157.+{random}.private</filename>, which can be
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng The <option>-k</option> may also be used to specify a SIG(0) key used
d4b0f84707225327c617c6838361d3cfb7762b34Jack Meng to authenticate Dynamic DNS update requests. In this case, the key
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte specified is not an HMAC-MD5 key.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <command>nsupdate</command> can be run in a local-host only mode
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte using the <option>-l</option> flag. This sets the server address to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte localhost (disabling the <command>server</command> so that the server
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte address cannot be overridden). Connections to the local server will
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte use a TSIG key found in <filename>/var/run/named/session.key</filename>,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte which is automatically generated by <command>named</command> if any
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte local master zone has set <command>update-policy</command> to
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte <command>local</command>. The location of this key file can be
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uses UDP to send update requests to the name server unless they are too
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte large to fit in a UDP request in which case TCP will be used.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte option makes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte use a TCP connection.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte This may be preferable when a batch of update requests is made.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte The <option>-p</option> sets the default port number to use for
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
> prereq nxdomain nickname.example.com