knsupdate - Dynamic DNS update utility
knsupdate [options] [filename]
This utility sends Dynamic DNS update messages to a DNS server. Update
content is read from a file (if the parameter filename is given) or
from the standard input.
The format of updates is textual and is made up of commands. Every
command is placed on the separate line of the input. Lines starting
with a semicolon are comments and are not processed.
Options
-d Enable debug messages.
-h, --help
Print the program help.
-k keyfile
Use the TSIG key stored in a file keyfile to authenticate the
request. The file should contain the key in the same format,
which is accepted by the -y option.
-p port
Set the port to use for connections to the server (if not
explicitly specified in the update). The default is 53.
-r retries
The number of retries for UDP requests. The default is 3.
-t timeout
The total timeout (for all UDP update tries) of the update
request in seconds. The default is 12. If set to zero, the
timeout is infinite.
-v Use a TCP connection.
-V, --version
Print the program version.
-y [alg:]name:key
Use the TSIG key with a name name to authenticate the request.
The alg part specifies the algorithm (the default is hmac-md5)
and key specifies the shared secret encoded in Base64.
Commands
server name [port]
Specifies a receiving server of the dynamic update message. The
name parameter can be either a host name or an IP address. If
the port is not specified, the default port is used. The default
port value can be controlled using the -p program option.
local address [port]
Specifies outgoing address and port. If no local is specified,
the address and port are set by the system automatically. The
default port number is 0.
zone name
Specifies that all updates are done within a zone name. If not
used, the default zone is the root zone.
origin name
Specifies fully qualified domain name suffix which is appended
to non-fqd owners in update commands. The default origin is the
root zone.
class name
Sets name as the default class for all updates. If not used, the
default class is IN.
ttl value
Sets value as the default TTL (in seconds). If not used, the
default value is 0.
key [alg:]name key
Specifies the TSIG key named name to authenticate the request.
An optional alg algorithm can be specified. This command has the
same effect as the program option -y.
[prereq] nxdomain name
Adds a prerequisite for a non-existing record owned by name.
[prereq] yxdomain name
Adds a prerequisite for an existing record owned by name.
[prereq] nxrrset name [class] type
Adds a prerequisite for a non-existing record of the type owned
by name. Internet class is expected.
[prereq] yxrrset name [class] type [data]
Adds a prerequisite for an existing record of the type owned by
name with optional data. Internet class is expected.
[update] add name [ttl] [class] type data
Adds a request to add a new resource record into the zone.
Please note that if the name is not fully qualified domain name,
the current origin name is appended to it.
[update] del[ete] name [ttl] [class] [type] [data]
Adds a request to remove all (or matching class, type or data)
resource records from the zone. There is the same requirement
for the name parameter as in update add command. The ttl item is
ignored.
show Displays current content of the update message.
send Sends the current update message and cleans the list of updates.
answer Displays the last answer from the server.
debug Enable debugging. This command has the same meaning as the -d
program option.
quit Quit the program.
Options -k and -y can not be used simultaneously. Dnssec-keygen keyfile format is not supported. Use keymgr(8) instead. Zone name/server guessing is not supported if the zone name/server is not specified. Empty line doesn't send the update.
1. Send one update of the zone example.com to the server 192.168.1.1.
The update contains two new records:
$ knsupdate
> server 192.168.1.1
> zone example.com.
> origin example.com.
> ttl 3600
> add test1.example.com. 7200 A 192.168.2.2
> add test2 TXT "hello"
> show
> send
> answer
> quit
kdig(1), khost(1), keymgr(8).
CZ.NIC Labs <http://www.knot-dns.cz>
Copyright 2010--2016, CZ.NIC, z.s.p.o.
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.