nsupdate.html revision f46b1b2329c4e56af6b231470e00053bad25e9e2
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater - Copyright (C) 2000, 2001 Internet Software Consortium.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - Permission to use, copy, modify, and distribute this software for any
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - purpose with or without fee is hereby granted, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - copyright notice and this permission notice appear in all copies.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>nsupdate</TITLE
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark AndrewsNAME="GENERATOR"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONTENT="Modular DocBook HTML Stylesheet Version 1.61
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFENTRY"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBGCOLOR="#FFFFFF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTEXT="#000000"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINK="#0000FF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinVLINK="#840084"
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsALINK="#0000FF"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFNAMEDIV"
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews>nsupdate -- Dynamic DNS update utility</DIV
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFSYNOPSISDIV"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REPLACEABLE"
68b30890ebd441a6a1ae3fdf71744d07d02cd030Mark Andrews>keyname:secret</I
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REPLACEABLE"
b05bdb520d83f7ecaad708fe305268c3420be01dMark AndrewsCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>] [filename]</P
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFSECT1"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews>DESCRIPTION</H2
ac93437301f55ed69bf85883a497a75598c628f9Automatic UpdaterCLASS="COMMAND"
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updateris used to submit Dynamic DNS Update requests as defined in RFC2136
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updaterto a name server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsThis allows resource records to be added or removed from a zone
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Lucewithout manually editing the zone file.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceA single update request can contain requests to add or remove more than one
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceresource record.</P
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce>Zones that are under dynamic control via
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceCLASS="COMMAND"
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrewsor a DHCP server should not be edited by hand.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceManual edits could
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceconflict with dynamic updates and cause data to be lost.</P
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce>The resource records that are dynamically added or removed with
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinhave to be in the same zone.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinRequests are sent to the zone's master server.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinThis is identified by the MNAME field of the zone's SOA record.</P
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinoperate in debug mode.
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterThis provides tracing information about the update requests that are
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updatermade and the replies received from the name server.</P
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater>Transaction signatures can be used to authenticate the Dynamic DNS
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterThese use the TSIG resource record type described in RFC2845.
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterThe signatures rely on a shared secret that should only be known to
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinand the name server.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCurrently, the only supported encryption algorithm for TSIG is
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinHMAC-MD5, which is defined in RFC 2104.
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsOnce other algorithms are defined for TSIG, applications will need to
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinensure they select the appropriate algorithm as well as the key when
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinauthenticating each other.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFor instance suitable
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews>server</SPAN
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinstatements would be added to
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="FILENAME"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinso that the name server can associate the appropriate secret key
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinand algorithm with the IP address of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinclient application that will be using TSIG authentication.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeindoes not read
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="FILENAME"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinoption to provide the shared secret needed to generate a TSIG record
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrewsfor authenticating Dynamic DNS update requests.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsThese options are mutually exclusive.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="COMMAND"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinreads the shared secret from the file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinwhose name is of the form
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="FILENAME"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>K{name}.+157.+{random}.private</TT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFor historical
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinreasons, the file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="FILENAME"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>K{name}.+157.+{random}.key</TT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinmust also be present. When the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinoption is used, a signature is generated from
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein>keyname:secret.</I
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinis the name of the key,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="PARAMETER"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinis the base64 encoded shared secret.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="OPTION"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinoption is discouraged because the shared secret is supplied as a command
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinline argument in clear text.
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsThis may be visible in the output from
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="CITEREFENTRY"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLASS="REFENTRYTITLE"
> update delete oldhost.example.com A
> update add newhost.example.com 86400 A 172.16.1.1
> prereq nxdomain nickname.example.com