knotc(8)

NAME

   knotc - Knot DNS control utility

SYNOPSIS

   knotc [parameters] action [action_args]

DESCRIPTION

   If no action is specified, the program is executed in interactive mode.

   Parameters
   -c, --config file
          Use     a     textual    configuration    file    (default    is
          @config_dir@/knot.conf).

   -C, --confdb directory
          Use  a  binary  configuration  database  directory  (default  is
          @storage_dir@/confdb).   The  default configuration database, if
          exists, has a preference to the default configuration file.

   -s, --socket path
          Use a control UNIX socket path (default is @run_dir@/knot.sock).

   -t, --timeout seconds
          Use a control timeout in seconds. Set 0 for infinity (default is
          5).

   -f, --force
          Forced operation. Overrides some checks.

   -v, --verbose
          Enable debug output.

   -h, --help
          Print the program help.

   -V, --version
          Print the program version.

   Actions
   status Check if the server is running.

   stop   Stop the server if running.

   reload Reload  the  server  configuration  and modified zone files. All
          open zone transactions will be aborted!

   zone-check [zone...]
          Test if the server  can  load  the  zone.  Semantic  checks  are
          executed if enabled in the configuration. (*)

   zone-memstats [zone...]
          Estimate memory use for the zone. (*)

   zone-status [zone...]
          Show the zone status. (*)

   zone-reload [zone...]
          Trigger   a  zone  reload  from  a  disk  without  checking  its
          modification time. For slave zone, the  refresh  from  a  master
          server  is scheduled; for master zone, the notification of slave
          servers is scheduled. An open zone transaction will be aborted!

   zone-refresh [zone...]
          Trigger a check for the zone serial on the zone's master. If the
          master  has  a newer zone, a transfer is scheduled. This command
          is valid for slave zones.

   zone-retransfer [zone...]
          Trigger a zone transfer  from  the  zone's  master.  The  server
          doesn't  check  the serial of the master's zone. This command is
          valid for slave zones.

   zone-flush [zone...]
          Trigger a zone journal flush into the zone file.

   zone-sign [zone...]
          Trigger a DNSSEC re-sign of the zone. Existing  signatures  will
          be  dropped.   This  command  is  valid for zones with automatic
          DNSSEC signing.

   zone-read zone [owner [type]]
          Get zone data that are currently being presented.

   zone-begin zone...
          Begin a zone transaction.

   zone-commit zone...
          Commit the zone transaction. All  changes  are  applied  to  the
          zone.

   zone-abort zone...
          Abort the zone transaction. All changes are discarded.

   zone-diff zone
          Get zone changes within the transaction.

   zone-get zone [owner [type]]
          Get zone data within the transaction.

   zone-set zone owner [ttl] type rdata
          Add  zone  record  within the transaction. The first record in a
          rrset requires a ttl value specified.

   zone-unset zone owner [type [rdata]]
          Remove zone data within the transaction.

   zone-purge zone...
          Purge zone data, file, journal, and timers.

   conf-init
          Initialize the configuration database. (*)

   conf-check
          Check the server configuration. (*)

   conf-import filename
          Import a configuration file  into  the  configuration  database.
          Ensure the server is not using the configuration database! (*)

   conf-export filename
          Export the configuration database into a config file. (*)

   conf-list [item]
          List the configuration database sections or section items.

   conf-read [item]
          Read the item from the active configuration database.

   conf-begin
          Begin  a  writing  configuration  database transaction. Only one
          transaction can be opened at a time.

   conf-commit
          Commit the configuration database transaction.

   conf-abort
          Rollback the configuration database transaction.

   conf-diff [item]
          Get the item difference in the transaction.

   conf-get [item]
          Get the item data from the transaction.

   conf-set item [data...]
          Set the item data in the transaction.

   conf-unset [item] [data...]
          Unset the item data in the transaction.

   Note
   Empty or -- zone  parameter  means  all  zones  or  all  zones  with  a
   transaction.

   Use @ owner to denote the zone name.

   Type item parameter in the form of section[[id]][.name].

   (*) indicates a local operation which requires a configuration.

   Interactive mode
   The   utility   provides  interactive  mode  with  basic  line  editing
   functionality, command completion, and command history.

   Interactive mode behavior can be  customized  in  ~/.editrc.  Refer  to
   editrc(5) for details.

   Command history is saved in ~/.knotc_history.

EXAMPLES

   Reload the whole server configuration
      $ knotc reload

   Flush the example.com and example.org zones
      $ knotc zone-flush example.com example.org

   Get the current server configuration
      $ knotc conf-read server

   Get the list of the current zones
      $ knotc conf-read zone.domain

   Get the master remotes for the example.com zone
      $ knotc conf-read 'zone[example.com].master'

   Add example.org zone with a zonefile location
      $ knotc conf-begin
      $ knotc conf-set 'zone[example.org]'
      $ knotc conf-set 'zone[example.org].file' '/var/zones/example.org.zone'
      $ knotc conf-commit

   Get the SOA record for each configured zone
      $ knotc zone-read -- @ SOA

SEE ALSO

   knotd(8), knot.conf(5), editrc(5).

AUTHOR

   CZ.NIC Labs <http://www.knot-dns.cz>

COPYRIGHT

   Copyright 2010--2016, CZ.NIC, z.s.p.o.



Opportunity


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


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.


Free Books


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.


Education


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.