199767f8919635c4928607450d9e0abb932109ceToomas Soome - Copyright (C) 2000-2012, 2014-2017 Internet Systems Consortium, Inc. ("ISC")
199767f8919635c4928607450d9e0abb932109ceToomas Soome - This Source Code Form is subject to the terms of the Mozilla Public
199767f8919635c4928607450d9e0abb932109ceToomas Soome - License, v. 2.0. If a copy of the MPL was not distributed with this
199767f8919635c4928607450d9e0abb932109ceToomas Soome - file, You can obtain one at http://mozilla.org/MPL/2.0/.
199767f8919635c4928607450d9e0abb932109ceToomas Soome<!-- Converted by db4-upgrade version 1.0 -->
199767f8919635c4928607450d9e0abb932109ceToomas Soome<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.nsupdate">
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refentryinfo>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refentryinfo>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refentrytitle><application>nsupdate</application></refentrytitle>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refnamediv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refname><application>nsupdate</application></refname>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refpurpose>Dynamic DNS update utility</refpurpose>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refnamediv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </copyright>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refsynopsisdiv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-d</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-D</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-i</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">level</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-g</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-o</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-l</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">keyfile</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">timeout</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-u <replaceable class="parameter">udptimeout</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-r <replaceable class="parameter">udpretries</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-R <replaceable class="parameter">randomdev</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-v</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-T</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-P</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat"><option>-V</option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg choice="opt" rep="norepeat">filename</arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </cmdsynopsis>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refsynopsisdiv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refsection><info><title>DESCRIPTION</title></info>
199767f8919635c4928607450d9e0abb932109ceToomas Soome is used to submit Dynamic DNS Update requests as defined in RFC 2136
199767f8919635c4928607450d9e0abb932109ceToomas Soome to a name server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome This allows resource records to be added or removed from a zone
199767f8919635c4928607450d9e0abb932109ceToomas Soome without manually editing the zone file.
199767f8919635c4928607450d9e0abb932109ceToomas Soome A single update request can contain requests to add or remove more than
199767f8919635c4928607450d9e0abb932109ceToomas Soome resource record.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Zones that are under dynamic control via
199767f8919635c4928607450d9e0abb932109ceToomas Soome or a DHCP server should not be edited by hand.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Manual edits could
199767f8919635c4928607450d9e0abb932109ceToomas Soome conflict with dynamic updates and cause data to be lost.
199767f8919635c4928607450d9e0abb932109ceToomas Soome The resource records that are dynamically added or removed with
199767f8919635c4928607450d9e0abb932109ceToomas Soome have to be in the same zone.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Requests are sent to the zone's master server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome This is identified by the MNAME field of the zone's SOA record.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Transaction signatures can be used to authenticate the Dynamic
199767f8919635c4928607450d9e0abb932109ceToomas Soome DNS updates. These use the TSIG resource record type described
199767f8919635c4928607450d9e0abb932109ceToomas Soome in RFC 2845 or the SIG(0) record described in RFC 2535 and
199767f8919635c4928607450d9e0abb932109ceToomas Soome RFC 2931 or GSS-TSIG as described in RFC 3645.
199767f8919635c4928607450d9e0abb932109ceToomas Soome TSIG relies on
199767f8919635c4928607450d9e0abb932109ceToomas Soome a shared secret that should only be known to
199767f8919635c4928607450d9e0abb932109ceToomas Soome <command>nsupdate</command> and the name server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome <type>server</type> statements would be added to
199767f8919635c4928607450d9e0abb932109ceToomas Soome <filename>/etc/named.conf</filename> so that the name server
199767f8919635c4928607450d9e0abb932109ceToomas Soome can associate the appropriate secret key and algorithm with
199767f8919635c4928607450d9e0abb932109ceToomas Soome the IP address of the client application that will be using
199767f8919635c4928607450d9e0abb932109ceToomas Soome TSIG authentication. You can use <command>ddns-confgen</command>
199767f8919635c4928607450d9e0abb932109ceToomas Soome to generate suitable configuration fragments.
199767f8919635c4928607450d9e0abb932109ceToomas Soome uses the <option>-y</option> or <option>-k</option> options
199767f8919635c4928607450d9e0abb932109ceToomas Soome to provide the TSIG shared secret. These options are mutually exclusive.
199767f8919635c4928607450d9e0abb932109ceToomas Soome SIG(0) uses public key cryptography.
199767f8919635c4928607450d9e0abb932109ceToomas Soome To use a SIG(0) key, the public key must be stored in a KEY
199767f8919635c4928607450d9e0abb932109ceToomas Soome record in a zone served by the name server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome GSS-TSIG uses Kerberos credentials. Standard GSS-TSIG mode
199767f8919635c4928607450d9e0abb932109ceToomas Soome is switched on with the <option>-g</option> flag. A
199767f8919635c4928607450d9e0abb932109ceToomas Soome non-standards-compliant variant of GSS-TSIG used by Windows
199767f8919635c4928607450d9e0abb932109ceToomas Soome 2000 can be switched on with the <option>-o</option> flag.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refsection>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refsection><info><title>OPTIONS</title></info>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <variablelist>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Debug mode. This provides tracing information about the
199767f8919635c4928607450d9e0abb932109ceToomas Soome update requests that are made and the replies received
199767f8919635c4928607450d9e0abb932109ceToomas Soome from the name server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Extra debug mode.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Force interactive mode, even when standard input is not a terminal.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-k <replaceable class="parameter">keyfile</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome The file containing the TSIG authentication key.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Keyfiles may be in two formats: a single file containing
199767f8919635c4928607450d9e0abb932109ceToomas Soome a <filename>named.conf</filename>-format <command>key</command>
199767f8919635c4928607450d9e0abb932109ceToomas Soome statement, which may be generated automatically by
199767f8919635c4928607450d9e0abb932109ceToomas Soome <command>ddns-confgen</command>, or a pair of files whose names are
199767f8919635c4928607450d9e0abb932109ceToomas Soome of the format <filename>K{name}.+157.+{random}.key</filename> and
199767f8919635c4928607450d9e0abb932109ceToomas Soome <filename>K{name}.+157.+{random}.private</filename>, which can be
199767f8919635c4928607450d9e0abb932109ceToomas Soome The <option>-k</option> may also be used to specify a SIG(0) key used
199767f8919635c4928607450d9e0abb932109ceToomas Soome to authenticate Dynamic DNS update requests. In this case, the key
199767f8919635c4928607450d9e0abb932109ceToomas Soome specified is not an HMAC-MD5 key.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Local-host only mode. This sets the server address to
199767f8919635c4928607450d9e0abb932109ceToomas Soome localhost (disabling the <command>server</command> so that the server
199767f8919635c4928607450d9e0abb932109ceToomas Soome address cannot be overridden). Connections to the local server will
199767f8919635c4928607450d9e0abb932109ceToomas Soome use a TSIG key found in <filename>/var/run/named/session.key</filename>,
199767f8919635c4928607450d9e0abb932109ceToomas Soome which is automatically generated by <command>named</command> if any
199767f8919635c4928607450d9e0abb932109ceToomas Soome local master zone has set <command>update-policy</command> to
199767f8919635c4928607450d9e0abb932109ceToomas Soome <command>local</command>. The location of this key file can be
199767f8919635c4928607450d9e0abb932109ceToomas Soome overridden with the <option>-k</option> option.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-L <replaceable class="parameter">level</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Set the logging debug level. If zero, logging is disabled.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-p <replaceable class="parameter">port</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Set the port to use for connections to a name server. The
199767f8919635c4928607450d9e0abb932109ceToomas Soome default is 53.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Print the list of private BIND-specific resource record
199767f8919635c4928607450d9e0abb932109ceToomas Soome types whose format is understood
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-r <replaceable class="parameter">udpretries</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome The number of UDP retries. The default is 3. If zero, only
199767f8919635c4928607450d9e0abb932109ceToomas Soome one update request will be made.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-R <replaceable class="parameter">randomdev</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Where to obtain randomness. If the operating system
199767f8919635c4928607450d9e0abb932109ceToomas Soome does not provide a <filename>/dev/random</filename> or
199767f8919635c4928607450d9e0abb932109ceToomas Soome equivalent device, the default source of randomness is keyboard
<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