bind10-guide.html 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>BIND 10 Guide</title><link rel="stylesheet" href="./bind10-guide.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><meta name="description" content="BIND 10 is a Domain Name System (DNS) suite managed by Internet Systems Consortium (ISC). It includes DNS libraries and modular components for controlling authoritative and recursive DNS servers. This is the reference guide for BIND 10 version 20110519. The most up-to-date version of this document, along with other documents for BIND 10, can be found at ."></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" title="BIND 10 Guide"><div class="titlepage"><div><div><h1 class="title"><a name="id1168230298903"></a>BIND 10 Guide</h1></div><div><h2 class="subtitle">Administrator Reference for BIND 10</h2></div><div><p class="releaseinfo">This is the reference guide for BIND 10 version
  2. 20110519.</p></div><div><p class="copyright">Copyright © 2010-2011 Internet Systems Consortium, Inc.</p></div><div><div class="abstract" title="Abstract"><p class="title"><b>Abstract</b></p><p>BIND 10 is a Domain Name System (DNS) suite managed by
  3. Internet Systems Consortium (ISC). It includes DNS libraries
  4. and modular components for controlling authoritative and
  5. recursive DNS servers.
  6. </p><p>
  7. This is the reference guide for BIND 10 version 20110519.
  8. The most up-to-date version of this document, along with
  9. other documents for BIND 10, can be found at <a class="ulink" href="http://bind10.isc.org/docs" target="_top">http://bind10.isc.org/docs</a>. </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#intro">1. Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230299038">Supported Platforms</a></span></dt><dt><span class="section"><a href="#id1168230299065">Required Software</a></span></dt><dt><span class="section"><a href="#starting_stopping">Starting and Stopping the Server</a></span></dt><dt><span class="section"><a href="#managing_once_running">Managing BIND 10</a></span></dt></dl></dd><dt><span class="chapter"><a href="#installation">2. Installation</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230284848">Building Requirements</a></span></dt><dt><span class="section"><a href="#quickstart">Quick start</a></span></dt><dt><span class="section"><a href="#install">Installation from source</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230285037">Download Tar File</a></span></dt><dt><span class="section"><a href="#id1168230285057">Retrieve from Git</a></span></dt><dt><span class="section"><a href="#id1168230285117">Configure before the build</a></span></dt><dt><span class="section"><a href="#id1168230285216">Build</a></span></dt><dt><span class="section"><a href="#id1168230285230">Install</a></span></dt><dt><span class="section"><a href="#id1168230285254">Install Hierarchy</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="#bind10">3. Starting BIND10 with <span class="command"><strong>bind10</strong></span></a></span></dt><dd><dl><dt><span class="section"><a href="#start">Starting BIND 10</a></span></dt></dl></dd><dt><span class="chapter"><a href="#msgq">4. Command channel</a></span></dt><dt><span class="chapter"><a href="#cfgmgr">5. Configuration manager</a></span></dt><dt><span class="chapter"><a href="#cmdctl">6. Remote control daemon</a></span></dt><dd><dl><dt><span class="section"><a href="#cmdctl.spec">Configuration specification for b10-cmdctl</a></span></dt></dl></dd><dt><span class="chapter"><a href="#bindctl">7. Control and configure user interface</a></span></dt><dt><span class="chapter"><a href="#authserver">8. Authoritative Server</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230285829">Server Configurations</a></span></dt><dt><span class="section"><a href="#id1168230285894">Data Source Backends</a></span></dt><dt><span class="section"><a href="#id1168230285924">Loading Master Zones Files</a></span></dt></dl></dd><dt><span class="chapter"><a href="#xfrin">9. Incoming Zone Transfers</a></span></dt><dt><span class="chapter"><a href="#xfrout">10. Outbound Zone Transfers</a></span></dt><dt><span class="chapter"><a href="#zonemgr">11. Secondary Manager</a></span></dt><dt><span class="chapter"><a href="#resolverserver">12. Recursive Name Server</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230286380">Forwarding</a></span></dt></dl></dd><dt><span class="chapter"><a href="#statistics">13. Statistics</a></span></dt></dl></div><div class="chapter" title="Chapter 1. Introduction"><div class="titlepage"><div><div><h2 class="title"><a name="intro"></a>Chapter 1. Introduction</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168230299038">Supported Platforms</a></span></dt><dt><span class="section"><a href="#id1168230299065">Required Software</a></span></dt><dt><span class="section"><a href="#starting_stopping">Starting and Stopping the Server</a></span></dt><dt><span class="section"><a href="#managing_once_running">Managing BIND 10</a></span></dt></dl></div><p>
  10. BIND is the popular implementation of a DNS server, developer
  11. interfaces, and DNS tools.
  12. BIND 10 is a rewrite of BIND 9. BIND 10 is written in C++ and Python
  13. and provides a modular environment for serving and maintaining DNS.
  14. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  15. This guide covers the experimental prototype of
  16. BIND 10 version 20110519.
  17. </p></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  18. BIND 10 provides a EDNS0- and DNSSEC-capable
  19. authoritative DNS server and a caching recursive name server
  20. which also provides forwarding.
  21. </p></div><div class="section" title="Supported Platforms"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230299038"></a>Supported Platforms</h2></div></div></div><p>
  22. BIND 10 builds have been tested on Debian GNU/Linux 5,
  23. Ubuntu 9.10, NetBSD 5, Solaris 10, FreeBSD 7 and 8, and CentOS
  24. Linux 5.3.
  25. It has been tested on Sparc, i386, and amd64 hardware
  26. platforms.
  27. It is planned for BIND 10 to build, install and run on
  28. Windows and standard Unix-type platforms.
  29. </p></div><div class="section" title="Required Software"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230299065"></a>Required Software</h2></div></div></div><p>
  30. BIND 10 requires Python 3.1. Later versions may work, but Python
  31. 3.1 is the minimum version which will work.
  32. </p><p>
  33. BIND 10 uses the Botan crypto library for C++. It requires
  34. at least Botan version 1.8.
  35. </p><p>
  36. BIND 10 uses the log4cplus C++ logging library. It requires
  37. at least log4cplus version 1.0.3.
  38. </p><p>
  39. The authoritative server requires SQLite 3.3.9 or newer.
  40. The <span class="command"><strong>b10-xfrin</strong></span>, <span class="command"><strong>b10-xfrout</strong></span>,
  41. and <span class="command"><strong>b10-zonemgr</strong></span> modules require the
  42. libpython3 library and the Python _sqlite3.so module.
  43. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  44. Some operating systems do not provide these dependencies
  45. in their default installation nor standard packages
  46. collections.
  47. You may need to install them separately.
  48. </p></div></div><div class="section" title="Starting and Stopping the Server"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="starting_stopping"></a>Starting and Stopping the Server</h2></div></div></div><p>
  49. BIND 10 is modular. Part of this modularity is
  50. accomplished using multiple cooperating processes which, together,
  51. provide the server functionality. This is a change from
  52. the previous generation of BIND software, which used a
  53. single process.
  54. </p><p>
  55. At first, running many different processes may seem confusing.
  56. However, these processes are started, stopped, and maintained
  57. by a single command, <span class="command"><strong>bind10</strong></span>.
  58. This command starts a master process which will start other
  59. processes as needed.
  60. The processes started by the <span class="command"><strong>bind10</strong></span>
  61. command have names starting with "b10-", including:
  62. </p><p>
  63. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  64. <span class="command"><strong>b10-msgq</strong></span> &#8212;
  65. Message bus daemon.
  66. This process coordinates communication between all of the other
  67. BIND 10 processes.
  68. </li><li class="listitem">
  69. <span class="command"><strong>b10-auth</strong></span> &#8212;
  70. Authoritative DNS server.
  71. This process serves DNS requests.
  72. </li><li class="listitem">
  73. <span class="command"><strong>b10-cfgmgr</strong></span> &#8212;
  74. Configuration manager.
  75. This process maintains all of the configuration for BIND 10.
  76. </li><li class="listitem">
  77. <span class="command"><strong>b10-cmdctl</strong></span> &#8212;
  78. Command and control service.
  79. This process allows external control of the BIND 10 system.
  80. </li><li class="listitem">
  81. <span class="command"><strong>b10-resolver</strong></span> &#8212;
  82. Recursive name server.
  83. This process handles incoming queries.
  84. </li><li class="listitem">
  85. <span class="command"><strong>b10-stats</strong></span> &#8212;
  86. Statistics collection daemon.
  87. This process collects and reports statistics data.
  88. </li><li class="listitem">
  89. <span class="command"><strong>b10-xfrin</strong></span> &#8212;
  90. Incoming zone transfer service.
  91. This process is used to transfer a new copy
  92. of a zone into BIND 10, when acting as a secondary server.
  93. </li><li class="listitem">
  94. <span class="command"><strong>b10-xfrout</strong></span> &#8212;
  95. Outgoing zone transfer service.
  96. This process is used to handle transfer requests to
  97. send a local zone to a remote secondary server,
  98. when acting as a master server.
  99. </li><li class="listitem">
  100. <span class="command"><strong>b10-zonemgr</strong></span> &#8212;
  101. Secondary manager.
  102. This process keeps track of timers and other
  103. necessary information for BIND 10 to act as a slave server.
  104. </li></ul></div><p>
  105. </p><p>
  106. These are ran automatically by <span class="command"><strong>bind10</strong></span>
  107. and do not need to be run manually.
  108. </p></div><div class="section" title="Managing BIND 10"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="managing_once_running"></a>Managing BIND 10</h2></div></div></div><p>
  109. Once BIND 10 is running, a few commands are used to interact
  110. directly with the system:
  111. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  112. <span class="command"><strong>bindctl</strong></span> &#8212;
  113. interactive administration interface.
  114. This is a command-line tool which allows an administrator
  115. to control BIND 10.
  116. </li><li class="listitem">
  117. <span class="command"><strong>b10-loadzone</strong></span> &#8212;
  118. zone file loader.
  119. This tool will load standard masterfile-format zone files into
  120. BIND 10.
  121. </li><li class="listitem">
  122. <span class="command"><strong>b10-cmdctl-usermgr</strong></span> &#8212;
  123. user access control.
  124. This tool allows an administrator to authorize additional users
  125. to manage BIND 10.
  126. </li></ul></div><p>
  127. </p></div><p>
  128. The tools and modules are covered in full detail in this guide.
  129. In addition, manual pages are also provided in the default installation.
  130. </p><p>
  131. BIND 10 also provides libraries and programmer interfaces
  132. for C++ and Python for the message bus, configuration backend,
  133. and, of course, DNS. These include detailed developer
  134. documentation and code examples.
  135. </p></div><div class="chapter" title="Chapter 2. Installation"><div class="titlepage"><div><div><h2 class="title"><a name="installation"></a>Chapter 2. Installation</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168230284848">Building Requirements</a></span></dt><dt><span class="section"><a href="#quickstart">Quick start</a></span></dt><dt><span class="section"><a href="#install">Installation from source</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168230285037">Download Tar File</a></span></dt><dt><span class="section"><a href="#id1168230285057">Retrieve from Git</a></span></dt><dt><span class="section"><a href="#id1168230285117">Configure before the build</a></span></dt><dt><span class="section"><a href="#id1168230285216">Build</a></span></dt><dt><span class="section"><a href="#id1168230285230">Install</a></span></dt><dt><span class="section"><a href="#id1168230285254">Install Hierarchy</a></span></dt></dl></dd></dl></div><div class="section" title="Building Requirements"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230284848"></a>Building Requirements</h2></div></div></div><p>
  136. In addition to the run-time requirements, building BIND 10
  137. from source code requires various development include headers.
  138. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  139. Some operating systems have split their distribution packages into
  140. a run-time and a development package. You will need to install
  141. the development package versions, which include header files and
  142. libraries, to build BIND 10 from source code.
  143. </p></div><p>
  144. Building from source code requires the Boost
  145. build-time headers. At least Boost version 1.35 is required.
  146. </p><p>
  147. To build BIND 10, also install the Botan (at least version
  148. 1.8) and the log4cplus (at least version 1.0.3)
  149. development include headers.
  150. </p><p>
  151. The Python Library and Python _sqlite3 module are required to
  152. enable the Xfrout and Xfrin support.
  153. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  154. The Python related libraries and modules need to be built
  155. for Python 3.1.
  156. </p></div><p>
  157. Building BIND 10 also requires a C++ compiler and
  158. standard development headers, make, and pkg-config.
  159. BIND 10 builds have been tested with GCC g++ 3.4.3, 4.1.2,
  160. 4.1.3, 4.2.1, 4.3.2, and 4.4.1; Clang++ 2.8; and Sun C++ 5.10.
  161. </p></div><div class="section" title="Quick start"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="quickstart"></a>Quick start</h2></div></div></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  162. This quickly covers the standard steps for installing
  163. and deploying BIND 10 as an authoritative name server using
  164. its defaults. For troubleshooting, full customizations and further
  165. details, see the respective chapters in the BIND 10 guide.
  166. </p></div><p>
  167. To quickly get started with BIND 10, follow these steps.
  168. </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
  169. Install required build dependencies.
  170. </li><li class="listitem">
  171. Download the BIND 10 source tar file from
  172. <a class="ulink" href="ftp://ftp.isc.org/isc/bind10/" target="_top">ftp://ftp.isc.org/isc/bind10/</a>.
  173. </li><li class="listitem"><p>Extract the tar file:
  174. </p><pre class="screen">$ <strong class="userinput"><code>gzcat bind10-<em class="replaceable"><code>VERSION</code></em>.tar.gz | tar -xvf -</code></strong></pre><p>
  175. </p></li><li class="listitem"><p>Go into the source and run configure:
  176. </p><pre class="screen">$ <strong class="userinput"><code>cd bind10-<em class="replaceable"><code>VERSION</code></em></code></strong>
  177. $ <strong class="userinput"><code>./configure</code></strong></pre><p>
  178. </p></li><li class="listitem"><p>Build it:
  179. </p><pre class="screen">$ <strong class="userinput"><code>make</code></strong></pre><p>
  180. </p></li><li class="listitem"><p>Install it (to default /usr/local):
  181. </p><pre class="screen">$ <strong class="userinput"><code>make install</code></strong></pre><p>
  182. </p></li><li class="listitem"><p>Start the server:
  183. </p><pre class="screen">$ <strong class="userinput"><code>/usr/local/sbin/bind10</code></strong></pre><p>
  184. </p></li><li class="listitem"><p>Test it; for example:
  185. </p><pre class="screen">$ <strong class="userinput"><code>dig @127.0.0.1 -c CH -t TXT authors.bind</code></strong></pre><p>
  186. </p></li><li class="listitem"><p>Load desired zone file(s), for example:
  187. </p><pre class="screen">$ <strong class="userinput"><code>b10-loadzone <em class="replaceable"><code>your.zone.example.org</code></em></code></strong></pre><p>
  188. </p></li><li class="listitem">
  189. Test the new zone.
  190. </li></ol></div></div><div class="section" title="Installation from source"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="install"></a>Installation from source</h2></div></div></div><p>
  191. BIND 10 is open source software written in C++ and Python.
  192. It is freely available in source code form from ISC via
  193. the Git code revision control system or as a downloadable
  194. tar file. It may also be available in pre-compiled ready-to-use
  195. packages from operating system vendors.
  196. </p><div class="section" title="Download Tar File"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285037"></a>Download Tar File</h3></div></div></div><p>
  197. Downloading a release tar file is the recommended method to
  198. obtain the source code.
  199. </p><p>
  200. The BIND 10 releases are available as tar file downloads from
  201. <a class="ulink" href="ftp://ftp.isc.org/isc/bind10/" target="_top">ftp://ftp.isc.org/isc/bind10/</a>.
  202. Periodic development snapshots may also be available.
  203. </p></div><div class="section" title="Retrieve from Git"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285057"></a>Retrieve from Git</h3></div></div></div><p>
  204. Downloading this "bleeding edge" code is recommended only for
  205. developers or advanced users. Using development code in a production
  206. environment is not recommended.
  207. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  208. When using source code retrieved via Git additional
  209. software will be required: automake (v1.11 or newer),
  210. libtoolize, and autoconf (2.59 or newer).
  211. These may need to be installed.
  212. </p></div><p>
  213. The latest development code, including temporary experiments
  214. and un-reviewed code, is available via the BIND 10 code revision
  215. control system. This is powered by Git and all the BIND 10
  216. development is public.
  217. The leading development is done in the <span class="quote">&#8220;<span class="quote">master</span>&#8221;</span>.
  218. </p><p>
  219. The code can be checked out from
  220. <code class="filename">git://bind10.isc.org/bind10</code>;
  221. for example:
  222. </p><pre class="screen">$ <strong class="userinput"><code>git clone git://bind10.isc.org/bind10</code></strong></pre><p>
  223. </p><p>
  224. When checking out the code from
  225. the code version control system, it doesn't include the
  226. generated configure script, Makefile.in files, nor the
  227. related configure files.
  228. They can be created by running <span class="command"><strong>autoreconf</strong></span>
  229. with the <code class="option">--install</code> switch.
  230. This will run <span class="command"><strong>autoconf</strong></span>,
  231. <span class="command"><strong>aclocal</strong></span>,
  232. <span class="command"><strong>libtoolize</strong></span>,
  233. <span class="command"><strong>autoheader</strong></span>,
  234. <span class="command"><strong>automake</strong></span>,
  235. and related commands.
  236. </p></div><div class="section" title="Configure before the build"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285117"></a>Configure before the build</h3></div></div></div><p>
  237. BIND 10 uses the GNU Build System to discover build environment
  238. details.
  239. To generate the makefiles using the defaults, simply run:
  240. </p><pre class="screen">$ <strong class="userinput"><code>./configure</code></strong></pre><p>
  241. </p><p>
  242. Run <span class="command"><strong>./configure</strong></span> with the <code class="option">--help</code>
  243. switch to view the different options. The commonly-used options are:
  244. </p><div class="variablelist"><dl><dt><span class="term">--prefix</span></dt><dd>Define the the installation location (the
  245. default is <code class="filename">/usr/local/</code>).
  246. </dd><dt><span class="term">--with-boost-include</span></dt><dd>Define the path to find the Boost headers.
  247. </dd><dt><span class="term">--with-pythonpath</span></dt><dd>Define the path to Python 3.1 if it is not in the
  248. standard execution path.
  249. </dd><dt><span class="term">--with-gtest</span></dt><dd>Enable building the C++ Unit Tests using the
  250. Google Tests framework. Optionally this can define the
  251. path to the gtest header files and library.
  252. </dd></dl></div><p>
  253. </p><p>
  254. For example, the following configures it to
  255. find the Boost headers, find the
  256. Python interpreter, and sets the installation location:
  257. </p><pre class="screen">$ <strong class="userinput"><code>./configure \
  258. --with-boost-include=/usr/pkg/include \
  259. --with-pythonpath=/usr/pkg/bin/python3.1 \
  260. --prefix=/opt/bind10</code></strong></pre><p>
  261. </p><p>
  262. If the configure fails, it may be due to missing or old
  263. dependencies.
  264. </p></div><div class="section" title="Build"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285216"></a>Build</h3></div></div></div><p>
  265. After the configure step is complete, to build the executables
  266. from the C++ code and prepare the Python scripts, run:
  267. </p><pre class="screen">$ <strong class="userinput"><code>make</code></strong></pre><p>
  268. </p></div><div class="section" title="Install"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285230"></a>Install</h3></div></div></div><p>
  269. To install the BIND 10 executables, support files,
  270. and documentation, run:
  271. </p><pre class="screen">$ <strong class="userinput"><code>make install</code></strong></pre><p>
  272. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The install step may require superuser privileges.</p></div></div><div class="section" title="Install Hierarchy"><div class="titlepage"><div><div><h3 class="title"><a name="id1168230285254"></a>Install Hierarchy</h3></div></div></div><p>
  273. The following is the layout of the complete BIND 10 installation:
  274. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  275. <code class="filename">bin/</code> &#8212;
  276. general tools and diagnostic clients.
  277. </li><li class="listitem">
  278. <code class="filename">etc/bind10-devel/</code> &#8212;
  279. configuration files.
  280. </li><li class="listitem">
  281. <code class="filename">lib/</code> &#8212;
  282. libraries and python modules.
  283. </li><li class="listitem">
  284. <code class="filename">libexec/bind10-devel/</code> &#8212;
  285. executables that a user wouldn't normally run directly and
  286. are not run independently.
  287. These are the BIND 10 modules which are daemons started by
  288. the <span class="command"><strong>bind10</strong></span> tool.
  289. </li><li class="listitem">
  290. <code class="filename">sbin/</code> &#8212;
  291. commands used by the system administrator.
  292. </li><li class="listitem">
  293. <code class="filename">share/bind10-devel/</code> &#8212;
  294. configuration specifications.
  295. </li><li class="listitem">
  296. <code class="filename">share/man/</code> &#8212;
  297. manual pages (online documentation).
  298. </li><li class="listitem">
  299. <code class="filename">var/bind10-devel/</code> &#8212;
  300. data source and configuration databases.
  301. </li></ul></div><p>
  302. </p></div></div></div><div class="chapter" title="Chapter 3. Starting BIND10 with bind10"><div class="titlepage"><div><div><h2 class="title"><a name="bind10"></a>Chapter 3. Starting BIND10 with <span class="command"><strong>bind10</strong></span></h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#start">Starting BIND 10</a></span></dt></dl></div><p>
  303. BIND 10 provides the <span class="command"><strong>bind10</strong></span> command which
  304. starts up the required processes.
  305. <span class="command"><strong>bind10</strong></span>
  306. will also restart processes that exit unexpectedly.
  307. This is the only command needed to start the BIND 10 system.
  308. </p><p>
  309. After starting the <span class="command"><strong>b10-msgq</strong></span> communications channel,
  310. <span class="command"><strong>bind10</strong></span> connects to it,
  311. runs the configuration manager, and reads its own configuration.
  312. Then it starts the other modules.
  313. </p><p>
  314. The <span class="command"><strong>b10-msgq</strong></span> and <span class="command"><strong>b10-cfgmgr</strong></span>
  315. services make up the core. The <span class="command"><strong>b10-msgq</strong></span> daemon
  316. provides the communication channel between every part of the system.
  317. The <span class="command"><strong>b10-cfgmgr</strong></span> daemon is always needed by every
  318. module, if only to send information about themselves somewhere,
  319. but more importantly to ask about their own settings, and
  320. about other modules.
  321. The <span class="command"><strong>bind10</strong></span> master process will also start up
  322. <span class="command"><strong>b10-cmdctl</strong></span> for admins to communicate with the
  323. system, <span class="command"><strong>b10-auth</strong></span> for authoritative DNS service or
  324. <span class="command"><strong>b10-resolver</strong></span> for recursive name service,
  325. <span class="command"><strong>b10-stats</strong></span> for statistics collection,
  326. <span class="command"><strong>b10-xfrin</strong></span> for inbound DNS zone transfers,
  327. <span class="command"><strong>b10-xfrout</strong></span> for outbound DNS zone transfers,
  328. and <span class="command"><strong>b10-zonemgr</strong></span> for secondary service.
  329. </p><div class="section" title="Starting BIND 10"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="start"></a>Starting BIND 10</h2></div></div></div><p>
  330. To start the BIND 10 service, simply run <span class="command"><strong>bind10</strong></span>.
  331. Run it with the <code class="option">--verbose</code> switch to
  332. get additional debugging or diagnostic output.
  333. </p></div></div><div class="chapter" title="Chapter 4. Command channel"><div class="titlepage"><div><div><h2 class="title"><a name="msgq"></a>Chapter 4. Command channel</h2></div></div></div><p>
  334. The BIND 10 components use the <span class="command"><strong>b10-msgq</strong></span>
  335. message routing daemon to communicate with other BIND 10 components.
  336. The <span class="command"><strong>b10-msgq</strong></span> implements what is called the
  337. <span class="quote">&#8220;<span class="quote">Command Channel</span>&#8221;</span>.
  338. Processes intercommunicate by sending messages on the command
  339. channel.
  340. Example messages include shutdown, get configurations, and set
  341. configurations.
  342. This Command Channel is not used for DNS message passing.
  343. It is used only to control and monitor the BIND 10 system.
  344. </p><p>
  345. Administrators do not communicate directly with the
  346. <span class="command"><strong>b10-msgq</strong></span> daemon.
  347. By default, BIND 10 uses port 9912 for the
  348. <span class="command"><strong>b10-msgq</strong></span> service.
  349. It listens on 127.0.0.1.
  350. </p></div><div class="chapter" title="Chapter 5. Configuration manager"><div class="titlepage"><div><div><h2 class="title"><a name="cfgmgr"></a>Chapter 5. Configuration manager</h2></div></div></div><p>
  351. The configuration manager, <span class="command"><strong>b10-cfgmgr</strong></span>,
  352. handles all BIND 10 system configuration. It provides
  353. persistent storage for configuration, and notifies running
  354. modules of configuration changes.
  355. </p><p>
  356. The <span class="command"><strong>b10-auth</strong></span> and <span class="command"><strong>b10-xfrin</strong></span>
  357. daemons and other components receive their configurations
  358. from the configuration manager over the <span class="command"><strong>b10-msgq</strong></span>
  359. command channel.
  360. </p><p>The administrator doesn't connect to it directly, but
  361. uses a user interface to communicate with the configuration
  362. manager via <span class="command"><strong>b10-cmdctl</strong></span>'s REST-ful interface.
  363. <span class="command"><strong>b10-cmdctl</strong></span> is covered in <a class="xref" href="#cmdctl" title="Chapter 6. Remote control daemon">Chapter 6, <i>Remote control daemon</i></a>.
  364. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  365. The development prototype release only provides the
  366. <span class="command"><strong>bindctl</strong></span> as a user interface to
  367. <span class="command"><strong>b10-cmdctl</strong></span>.
  368. Upcoming releases will provide another interactive command-line
  369. interface and a web-based interface.
  370. </p></div><p>
  371. The <span class="command"><strong>b10-cfgmgr</strong></span> daemon can send all
  372. specifications and all current settings to the
  373. <span class="command"><strong>bindctl</strong></span> client (via
  374. <span class="command"><strong>b10-cmdctl</strong></span>).
  375. </p><p>
  376. <span class="command"><strong>b10-cfgmgr</strong></span> relays configurations received
  377. from <span class="command"><strong>b10-cmdctl</strong></span> to the appropriate modules.
  378. </p><p>
  379. The stored configuration file is at
  380. <code class="filename">/usr/local/var/bind10-devel/b10-config.db</code>.
  381. (The full path is what was defined at build configure time for
  382. <code class="option">--localstatedir</code>.
  383. The default is <code class="filename">/usr/local/var/</code>.)
  384. The format is loosely based on JSON and is directly parseable
  385. python, but this may change in a future version.
  386. This configuration data file is not manually edited by the
  387. administrator.
  388. </p><p>
  389. The configuration manager does not have any command line arguments.
  390. Normally it is not started manually, but is automatically
  391. started using the <span class="command"><strong>bind10</strong></span> master process
  392. (as covered in <a class="xref" href="#bind10" title="Chapter 3. Starting BIND10 with bind10">Chapter 3, <i>Starting BIND10 with <span class="command"><strong>bind10</strong></span></i></a>).
  393. </p></div><div class="chapter" title="Chapter 6. Remote control daemon"><div class="titlepage"><div><div><h2 class="title"><a name="cmdctl"></a>Chapter 6. Remote control daemon</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#cmdctl.spec">Configuration specification for b10-cmdctl</a></span></dt></dl></div><p>
  394. <span class="command"><strong>b10-cmdctl</strong></span> is the gateway between
  395. administrators and the BIND 10 system.
  396. It is a HTTPS server that uses standard HTTP Digest
  397. Authentication for username and password validation.
  398. It provides a REST-ful interface for accessing and controlling
  399. BIND 10.
  400. </p><p>
  401. When <span class="command"><strong>b10-cmdctl</strong></span> starts, it firsts
  402. asks <span class="command"><strong>b10-cfgmgr</strong></span> about what modules are
  403. running and what their configuration is (over the
  404. <span class="command"><strong>b10-msgq</strong></span> channel). Then it will start listening
  405. on HTTPS for clients &#8212; the user interface &#8212; such
  406. as <span class="command"><strong>bindctl</strong></span>.
  407. </p><p>
  408. <span class="command"><strong>b10-cmdctl</strong></span> directly sends commands
  409. (received from the user interface) to the specified component.
  410. Configuration changes are actually commands to
  411. <span class="command"><strong>b10-cfgmgr</strong></span> so are sent there.
  412. </p><p>The HTTPS server requires a private key,
  413. such as a RSA PRIVATE KEY.
  414. The default location is at
  415. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-keyfile.pem</code>.
  416. (A sample key is at
  417. <code class="filename">/usr/local/share/bind10-devel/cmdctl-keyfile.pem</code>.)
  418. It also uses a certificate located at
  419. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-certfile.pem</code>.
  420. (A sample certificate is at
  421. <code class="filename">/usr/local/share/bind10-devel/cmdctl-certfile.pem</code>.)
  422. This may be a self-signed certificate or purchased from a
  423. certification authority.
  424. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  425. The HTTPS server doesn't support a certificate request from a
  426. client (at this time).
  427. The <span class="command"><strong>b10-cmdctl</strong></span> daemon does not provide a
  428. public service. If any client wants to control BIND 10, then
  429. a certificate needs to be first received from the BIND 10
  430. administrator.
  431. The BIND 10 installation provides a sample PEM bundle that matches
  432. the sample key and certificate.
  433. </p></div><p>
  434. The <span class="command"><strong>b10-cmdctl</strong></span> daemon also requires
  435. the user account file located at
  436. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-accounts.csv</code>.
  437. This comma-delimited file lists the accounts with a user name,
  438. hashed password, and salt.
  439. (A sample file is at
  440. <code class="filename">/usr/local/share/bind10-devel/cmdctl-accounts.csv</code>.
  441. It contains the user named <span class="quote">&#8220;<span class="quote">root</span>&#8221;</span> with the password
  442. <span class="quote">&#8220;<span class="quote">bind10</span>&#8221;</span>.)
  443. </p><p>
  444. The administrator may create a user account with the
  445. <span class="command"><strong>b10-cmdctl-usermgr</strong></span> tool.
  446. </p><p>
  447. By default the HTTPS server listens on the localhost port 8080.
  448. The port can be set by using the <code class="option">--port</code> command line option.
  449. The address to listen on can be set using the <code class="option">--address</code> command
  450. line argument.
  451. Each HTTPS connection is stateless and timesout in 1200 seconds
  452. by default. This can be
  453. redefined by using the <code class="option">--idle-timeout</code> command line argument.
  454. </p><div class="section" title="Configuration specification for b10-cmdctl"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cmdctl.spec"></a>Configuration specification for b10-cmdctl</h2></div></div></div><p>
  455. The configuration items for <span class="command"><strong>b10-cmdctl</strong></span> are:
  456. key_file
  457. cert_file
  458. accounts_file
  459. </p><p>
  460. The control commands are:
  461. print_settings
  462. shutdown
  463. </p></div></div><div class="chapter" title="Chapter 7. Control and configure user interface"><div class="titlepage"><div><div><h2 class="title"><a name="bindctl"></a>Chapter 7. Control and configure user interface</h2></div></div></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  464. For this development prototype release, <span class="command"><strong>bindctl</strong></span>
  465. is the only user interface. It is expected that upcoming
  466. releases will provide another interactive command-line
  467. interface and a web-based interface for controlling and
  468. configuring BIND 10.
  469. </p></div><p>
  470. The <span class="command"><strong>bindctl</strong></span> tool provides an interactive
  471. prompt for configuring, controlling, and querying the BIND 10
  472. components.
  473. It communicates directly with a REST-ful interface over HTTPS
  474. provided by <span class="command"><strong>b10-cmdctl</strong></span>. It doesn't
  475. communicate to any other components directly.
  476. </p><p>
  477. Configuration changes are actually commands to
  478. <span class="command"><strong>b10-cfgmgr</strong></span>. So when <span class="command"><strong>bindctl</strong></span>
  479. sends a configuration, it is sent to <span class="command"><strong>b10-cmdctl</strong></span>
  480. (over a HTTPS connection); then <span class="command"><strong>b10-cmdctl</strong></span>
  481. sends the command (over a <span class="command"><strong>b10-msgq</strong></span> command
  482. channel) to <span class="command"><strong>b10-cfgmgr</strong></span> which then stores
  483. the details and relays (over a <span class="command"><strong>b10-msgq</strong></span> command
  484. channel) the configuration on to the specified module.
  485. </p><p>
  486. </p></div><div class="chapter" title="Chapter 8. Authoritative Server"><div class="titlepage"><div><div><h2 class="title"><a name="authserver"></a>Chapter 8. Authoritative Server</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168230285829">Server Configurations</a></span></dt><dt><span class="section"><a href="#id1168230285894">Data Source Backends</a></span></dt><dt><span class="section"><a href="#id1168230285924">Loading Master Zones Files</a></span></dt></dl></div><p>
  487. The <span class="command"><strong>b10-auth</strong></span> is the authoritative DNS server.
  488. It supports EDNS0 and DNSSEC. It supports IPv6.
  489. Normally it is started by the <span class="command"><strong>bind10</strong></span> master
  490. process.
  491. </p><div class="section" title="Server Configurations"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230285829"></a>Server Configurations</h2></div></div></div><p>
  492. <span class="command"><strong>b10-auth</strong></span> is configured via the
  493. <span class="command"><strong>b10-cfgmgr</strong></span> configuration manager.
  494. The module name is <span class="quote">&#8220;<span class="quote">Auth</span>&#8221;</span>.
  495. The configuration data item is:
  496. </p><div class="variablelist"><dl><dt><span class="term">database_file</span></dt><dd>This is an optional string to define the path to find
  497. the SQLite3 database file.
  498. Note: Later the DNS server will use various data source backends.
  499. This may be a temporary setting until then.
  500. </dd></dl></div><p>
  501. </p><p>
  502. The configuration command is:
  503. </p><div class="variablelist"><dl><dt><span class="term">shutdown</span></dt><dd>Stop the authoritative DNS server.
  504. </dd></dl></div><p>
  505. </p></div><div class="section" title="Data Source Backends"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230285894"></a>Data Source Backends</h2></div></div></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  506. For the development prototype release, <span class="command"><strong>b10-auth</strong></span>
  507. supports a SQLite3 data source backend and in-memory data source
  508. backend.
  509. Upcoming versions will be able to use multiple different
  510. data sources, such as MySQL and Berkeley DB.
  511. </p></div><p>
  512. By default, the SQLite3 backend uses the data file located at
  513. <code class="filename">/usr/local/var/bind10-devel/zone.sqlite3</code>.
  514. (The full path is what was defined at build configure time for
  515. <code class="option">--localstatedir</code>.
  516. The default is <code class="filename">/usr/local/var/</code>.)
  517. This data file location may be changed by defining the
  518. <span class="quote">&#8220;<span class="quote">database_file</span>&#8221;</span> configuration.
  519. </p></div><div class="section" title="Loading Master Zones Files"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230285924"></a>Loading Master Zones Files</h2></div></div></div><p>
  520. RFC 1035 style DNS master zone files may imported
  521. into a BIND 10 data source by using the
  522. <span class="command"><strong>b10-loadzone</strong></span> utility.
  523. </p><p>
  524. <span class="command"><strong>b10-loadzone</strong></span> supports the following
  525. special directives (control entries):
  526. </p><div class="variablelist"><dl><dt><span class="term">$INCLUDE</span></dt><dd>Loads an additional zone file. This may be recursive.
  527. </dd><dt><span class="term">$ORIGIN</span></dt><dd>Defines the relative domain name.
  528. </dd><dt><span class="term">$TTL</span></dt><dd>Defines the time-to-live value used for following
  529. records that don't include a TTL.
  530. </dd></dl></div><p>
  531. </p><p>
  532. The <code class="option">-o</code> argument may be used to define the
  533. default origin for loaded zone file records.
  534. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  535. In the development prototype release, only the SQLite3 back
  536. end is used.
  537. By default, it stores the zone data in
  538. <code class="filename">/usr/local/var/bind10-devel/zone.sqlite3</code>
  539. unless the <code class="option">-d</code> switch is used to set the
  540. database filename.
  541. Multiple zones are stored in a single SQLite3 zone database.
  542. </p></div><p>
  543. If you reload a zone already existing in the database,
  544. all records from that prior zone disappear and a whole new set
  545. appears.
  546. </p></div></div><div class="chapter" title="Chapter 9. Incoming Zone Transfers"><div class="titlepage"><div><div><h2 class="title"><a name="xfrin"></a>Chapter 9. Incoming Zone Transfers</h2></div></div></div><p>
  547. Incoming zones are transferred using the <span class="command"><strong>b10-xfrin</strong></span>
  548. process which is started by <span class="command"><strong>bind10</strong></span>.
  549. When received, the zone is stored in the BIND 10
  550. data store, and its records can be served by
  551. <span class="command"><strong>b10-auth</strong></span>.
  552. In combination with <span class="command"><strong>b10-zonemgr</strong></span> (for
  553. automated SOA checks), this allows the BIND 10 server to
  554. provide <span class="quote">&#8220;<span class="quote">secondary</span>&#8221;</span> service.
  555. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  556. The current development release of BIND 10 only supports
  557. AXFR. (IXFR is not supported.)
  558. </p></div><p>
  559. To manually trigger a zone transfer to retrieve a remote zone,
  560. you may use the <span class="command"><strong>bindctl</strong></span> utility.
  561. For example, at the <span class="command"><strong>bindctl</strong></span> prompt run:
  562. </p><pre class="screen">&gt; <strong class="userinput"><code>Xfrin retransfer zone_name="<code class="option">foo.example.org</code>" master=<code class="option">192.0.2.99</code></code></strong></pre><p>
  563. </p></div><div class="chapter" title="Chapter 10. Outbound Zone Transfers"><div class="titlepage"><div><div><h2 class="title"><a name="xfrout"></a>Chapter 10. Outbound Zone Transfers</h2></div></div></div><p>
  564. The <span class="command"><strong>b10-xfrout</strong></span> process is started by
  565. <span class="command"><strong>bind10</strong></span>.
  566. When the <span class="command"><strong>b10-auth</strong></span> authoritative DNS server
  567. receives an AXFR request, <span class="command"><strong>b10-xfrout</strong></span>
  568. sends the zone.
  569. This is used to provide master DNS service to share zones
  570. to secondary name servers.
  571. The <span class="command"><strong>b10-xfrout</strong></span> is also used to send
  572. NOTIFY messages to slaves.
  573. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  574. The current development release of BIND 10 only supports
  575. AXFR. (IXFR is not supported.)
  576. Access control is not yet provided.
  577. </p></div></div><div class="chapter" title="Chapter 11. Secondary Manager"><div class="titlepage"><div><div><h2 class="title"><a name="zonemgr"></a>Chapter 11. Secondary Manager</h2></div></div></div><p>
  578. The <span class="command"><strong>b10-zonemgr</strong></span> process is started by
  579. <span class="command"><strong>bind10</strong></span>.
  580. It keeps track of SOA refresh, retry, and expire timers
  581. and other details for BIND 10 to perform as a slave.
  582. When the <span class="command"><strong>b10-auth</strong></span> authoritative DNS server
  583. receives a NOTIFY message, <span class="command"><strong>b10-zonemgr</strong></span>
  584. may tell <span class="command"><strong>b10-xfrin</strong></span> to do a refresh
  585. to start an inbound zone transfer.
  586. The secondary manager resets its counters when a new zone is
  587. transferred in.
  588. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  589. Access control (such as allowing notifies) is not yet provided.
  590. The primary/secondary service is not yet complete.
  591. </p></div></div><div class="chapter" title="Chapter 12. Recursive Name Server"><div class="titlepage"><div><div><h2 class="title"><a name="resolverserver"></a>Chapter 12. Recursive Name Server</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168230286380">Forwarding</a></span></dt></dl></div><p>
  592. The <span class="command"><strong>b10-resolver</strong></span> process is started by
  593. <span class="command"><strong>bind10</strong></span>.
  594. </p><p>
  595. The main <span class="command"><strong>bind10</strong></span> process can be configured
  596. to select to run either the authoritative or resolver.
  597. By default, it starts the authoritative service.
  598. You may change this using <span class="command"><strong>bindctl</strong></span>, for example:
  599. </p><pre class="screen">
  600. &gt; <strong class="userinput"><code>config set Boss/start_auth false</code></strong>
  601. &gt; <strong class="userinput"><code>config set Boss/start_resolver true</code></strong>
  602. &gt; <strong class="userinput"><code>config commit</code></strong>
  603. </pre><p>
  604. </p><p>
  605. The master <span class="command"><strong>bind10</strong></span> will stop and start
  606. the desired services.
  607. </p><p>
  608. The resolver also needs to be configured to listen on an address
  609. and port:
  610. </p><pre class="screen">
  611. &gt; <strong class="userinput"><code>config set Resolver/listen_on [{ "address": "127.0.0.1", "port": 53 }]</code></strong>
  612. &gt; <strong class="userinput"><code>config commit</code></strong>
  613. </pre><p>
  614. </p><div class="section" title="Forwarding"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168230286380"></a>Forwarding</h2></div></div></div><p>
  615. To enable forwarding, the upstream address and port must be
  616. configured to forward queries to, such as:
  617. </p><pre class="screen">
  618. &gt; <strong class="userinput"><code>config set Resolver/forward_addresses [{ "address": "<em class="replaceable"><code>192.168.1.1</code></em>", "port": 53 }]</code></strong>
  619. &gt; <strong class="userinput"><code>config commit</code></strong>
  620. </pre><p>
  621. (Replace <em class="replaceable"><code>192.168.1.1</code></em> to point to your
  622. full resolver.)
  623. </p><p>
  624. Normal iterative name service can be re-enabled by clearing the
  625. forwarding address(es); for example:
  626. </p><pre class="screen">
  627. &gt; <strong class="userinput"><code>config set Resolver/forward_addresses []</code></strong>
  628. &gt; <strong class="userinput"><code>config commit</code></strong>
  629. </pre><p>
  630. </p></div></div><div class="chapter" title="Chapter 13. Statistics"><div class="titlepage"><div><div><h2 class="title"><a name="statistics"></a>Chapter 13. Statistics</h2></div></div></div><p>
  631. The <span class="command"><strong>b10-stats</strong></span> process is started by
  632. <span class="command"><strong>bind10</strong></span>.
  633. It periodically collects statistics data from various modules
  634. and aggregates it.
  635. </p><p>
  636. This stats daemon provides commands to identify if it is running,
  637. show specified or all statistics data, set values, remove data,
  638. and reset data.
  639. For example, using <span class="command"><strong>bindctl</strong></span>:
  640. </p><pre class="screen">
  641. &gt; <strong class="userinput"><code>Stats show</code></strong>
  642. {
  643. "auth.queries.tcp": 1749,
  644. "auth.queries.udp": 867868,
  645. "bind10.boot_time": "2011-01-20T16:59:03Z",
  646. "report_time": "2011-01-20T17:04:06Z",
  647. "stats.boot_time": "2011-01-20T16:59:05Z",
  648. "stats.last_update_time": "2011-01-20T17:04:05Z",
  649. "stats.lname": "4d3869d9_a@jreed.example.net",
  650. "stats.start_time": "2011-01-20T16:59:05Z",
  651. "stats.timestamp": 1295543046.823504
  652. }
  653. </pre><p>
  654. </p></div></div></body></html>