bind10-guide.html 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635
  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 framework that features Domain Name System (DNS) suite and Dynamic Host Configuration Protocol (DHCP) servers managed by Internet Systems Consortium (ISC). It includes DNS libraries, modular components for controlling authoritative and recursive DNS servers, and experimental DHCPv4 and DHCPv6 servers. This is the reference guide for BIND 10 version 20120127. The most up-to-date version of this document (in PDF, HTML, and plain text formats), 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="id1168229451102"></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. 20120127.</p></div><div><p class="copyright">Copyright © 2010-2012 Internet Systems Consortium, Inc.</p></div><div><div class="abstract" title="Abstract"><p class="title"><b>Abstract</b></p><p>BIND 10 is a framework that features Domain Name System
  3. (DNS) suite and Dynamic Host Configuration Protocol (DHCP)
  4. servers managed by Internet Systems Consortium (ISC). It
  5. includes DNS libraries, modular components for controlling
  6. authoritative and recursive DNS servers, and experimental DHCPv4
  7. and DHCPv6 servers.
  8. </p><p>
  9. This is the reference guide for BIND 10 version 20120127.
  10. The most up-to-date version of this document (in PDF, HTML,
  11. and plain text formats), along with other documents for
  12. BIND 10, can be found at <a class="ulink" href="http://bind10.isc.org/docs" target="_top">http://bind10.isc.org/docs</a>.
  13. </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="preface"><a href="#id1168229451188">Preface</a></span></dt><dd><dl><dt><span class="section"><a href="#acknowledgements">1. Acknowledgements</a></span></dt></dl></dd><dt><span class="chapter"><a href="#intro">1. Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229451269">1.1. Supported Platforms</a></span></dt><dt><span class="section"><a href="#required-software">1.2. Required Software</a></span></dt><dt><span class="section"><a href="#starting_stopping">1.3. Starting and Stopping the Server</a></span></dt><dt><span class="section"><a href="#managing_once_running">1.4. 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="#build-requirements">2.1. Building Requirements</a></span></dt><dt><span class="section"><a href="#quickstart">2.2. Quick start</a></span></dt><dt><span class="section"><a href="#install">2.3. Installation from source</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229436809">2.3.1. Download Tar File</a></span></dt><dt><span class="section"><a href="#id1168229436828">2.3.2. Retrieve from Git</a></span></dt><dt><span class="section"><a href="#id1168229436889">2.3.3. Configure before the build</a></span></dt><dt><span class="section"><a href="#id1168229436986">2.3.4. Build</a></span></dt><dt><span class="section"><a href="#id1168229437002">2.3.5. Install</a></span></dt><dt><span class="section"><a href="#id1168229437026">2.3.6. 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">3.1. Starting BIND 10</a></span></dt><dt><span class="section"><a href="#bind10.config">3.2. Configuration of started processes</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">6.1. 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="#id1168229437990">8.1. Server Configurations</a></span></dt><dt><span class="section"><a href="#id1168229438055">8.2. Data Source Backends</a></span></dt><dt><span class="section"><a href="#id1168229438085">8.3. Loading Master Zones Files</a></span></dt></dl></dd><dt><span class="chapter"><a href="#xfrin">9. Incoming Zone Transfers</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229438216">9.1. Configuration for Incoming Zone Transfers</a></span></dt><dt><span class="section"><a href="#id1168229438254">9.2. Enabling IXFR</a></span></dt><dt><span class="section"><a href="#zonemgr">9.3. Secondary Manager</a></span></dt><dt><span class="section"><a href="#id1168229438369">9.4. Trigger an Incoming Zone Transfer Manually</a></span></dt></dl></dd><dt><span class="chapter"><a href="#xfrout">10. Outbound Zone Transfers</a></span></dt><dt><span class="chapter"><a href="#resolverserver">11. Recursive Name Server</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229438715">11.1. Access Control</a></span></dt><dt><span class="section"><a href="#id1168229438900">11.2. Forwarding</a></span></dt></dl></dd><dt><span class="chapter"><a href="#dhcp4">12. DHCPv4 Server</a></span></dt><dd><dl><dt><span class="section"><a href="#dhcp4-usage">12.1. DHCPv4 Server Usage</a></span></dt><dt><span class="section"><a href="#dhcp4-config">12.2. DHCPv4 Server Configuration</a></span></dt><dt><span class="section"><a href="#dhcp4-std">12.3. Supported standards</a></span></dt><dt><span class="section"><a href="#dhcp4-limit">12.4. DHCPv4 Server Limitations</a></span></dt></dl></dd><dt><span class="chapter"><a href="#dhcp6">13. DHCPv6 Server</a></span></dt><dd><dl><dt><span class="section"><a href="#dhcp6-usage">13.1. DHCPv6 Server Usage</a></span></dt><dt><span class="section"><a href="#dhcp6-config">13.2. DHCPv6 Server Configuration</a></span></dt><dt><span class="section"><a href="#dhcp6-std">13.3. Supported DHCPv6 Standards</a></span></dt><dt><span class="section"><a href="#dhcp6-limit">13.4. DHCPv6 Server Limitations</a></span></dt></dl></dd><dt><span class="chapter"><a href="#libdhcp">14. libdhcp++ library</a></span></dt><dd><dl><dt><span class="section"><a href="#iface-detect">14.1. Interface detection</a></span></dt><dt><span class="section"><a href="#packet-handling">14.2. DHCPv4/DHCPv6 packet handling</a></span></dt></dl></dd><dt><span class="chapter"><a href="#statistics">15. Statistics</a></span></dt><dt><span class="chapter"><a href="#logging">16. Logging</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229440014">16.1. Logging configuration</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229440025">16.1.1. Loggers</a></span></dt><dt><span class="section"><a href="#id1168229440268">16.1.2. Output Options</a></span></dt><dt><span class="section"><a href="#id1168229440509">16.1.3. Example session</a></span></dt></dl></dd><dt><span class="section"><a href="#id1168229440720">16.2. Logging Message Format</a></span></dt></dl></dd></dl></div><div class="list-of-tables"><p><b>List of Tables</b></p><dl><dt>3.1. <a href="#id1168229437291"></a></dt></dl></div><div class="preface" title="Preface"><div class="titlepage"><div><div><h2 class="title"><a name="id1168229451188"></a>Preface</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#acknowledgements">1. Acknowledgements</a></span></dt></dl></div><div class="section" title="1. Acknowledgements"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="acknowledgements"></a>1. Acknowledgements</h2></div></div></div><p>ISC would like to acknowledge generous support for
  14. BIND 10 development of DHCPv4 and DHCPv6 components provided
  15. by <a class="ulink" href="http://www.comcast.com/" target="_top">Comcast</a>.</p></div></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="#id1168229451269">1.1. Supported Platforms</a></span></dt><dt><span class="section"><a href="#required-software">1.2. Required Software</a></span></dt><dt><span class="section"><a href="#starting_stopping">1.3. Starting and Stopping the Server</a></span></dt><dt><span class="section"><a href="#managing_once_running">1.4. Managing BIND 10</a></span></dt></dl></div><p>
  16. BIND is the popular implementation of a DNS server, developer
  17. interfaces, and DNS tools.
  18. BIND 10 is a rewrite of BIND 9. BIND 10 is written in C++ and Python
  19. and provides a modular environment for serving and maintaining DNS.
  20. BIND 10 provides a EDNS0- and DNSSEC-capable authoritative
  21. DNS server and a caching recursive name server which also
  22. provides forwarding.
  23. </p><p>
  24. This guide covers the experimental prototype of
  25. BIND 10 version 20120127.
  26. </p><div class="section" title="1.1. Supported Platforms"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229451269"></a>1.1. Supported Platforms</h2></div></div></div><p>
  27. BIND 10 builds have been tested on Debian GNU/Linux 5 and unstable,
  28. Ubuntu 9.10, NetBSD 5, Solaris 10, FreeBSD 7 and 8, CentOS
  29. Linux 5.3, and MacOS 10.6.
  30. It has been tested on Sparc, i386, and amd64 hardware
  31. platforms.
  32. It is planned for BIND 10 to build, install and run on
  33. Windows and standard Unix-type platforms.
  34. </p></div><div class="section" title="1.2. Required Software"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="required-software"></a>1.2. Required Software</h2></div></div></div><p>
  35. BIND 10 requires at least Python 3.1
  36. (<a class="ulink" href="http://www.python.org/" target="_top">http://www.python.org/</a>).
  37. It has also been tested with Python 3.2.
  38. </p><p>
  39. BIND 10 uses the Botan crypto library for C++
  40. (<a class="ulink" href="http://botan.randombit.net/" target="_top">http://botan.randombit.net/</a>).
  41. It requires at least Botan version 1.8.
  42. </p><p>
  43. BIND 10 uses the log4cplus C++ logging library
  44. (<a class="ulink" href="http://log4cplus.sourceforge.net/" target="_top">http://log4cplus.sourceforge.net/</a>).
  45. It requires at least log4cplus version 1.0.3.
  46. </p><p>
  47. The authoritative DNS server uses SQLite3
  48. (<a class="ulink" href="http://www.sqlite.org/" target="_top">http://www.sqlite.org/</a>).
  49. It needs at least SQLite version 3.3.9.
  50. </p><p>
  51. The <span class="command"><strong>b10-xfrin</strong></span>, <span class="command"><strong>b10-xfrout</strong></span>,
  52. and <span class="command"><strong>b10-zonemgr</strong></span> components require the
  53. libpython3 library and the Python _sqlite3.so module
  54. (which is included with Python).
  55. The Python module needs to be built for the corresponding Python 3.
  56. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  57. Some operating systems do not provide these dependencies
  58. in their default installation nor standard packages
  59. collections.
  60. You may need to install them separately.
  61. </p></div></div><div class="section" title="1.3. Starting and Stopping the Server"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="starting_stopping"></a>1.3. Starting and Stopping the Server</h2></div></div></div><p>
  62. BIND 10 is modular. Part of this modularity is
  63. accomplished using multiple cooperating processes which, together,
  64. provide the server functionality. This is a change from
  65. the previous generation of BIND software, which used a
  66. single process.
  67. </p><p>
  68. At first, running many different processes may seem confusing.
  69. However, these processes are started, stopped, and maintained
  70. by a single command, <span class="command"><strong>bind10</strong></span>.
  71. This command starts a master process which will start other
  72. processes as needed.
  73. The processes started by the <span class="command"><strong>bind10</strong></span>
  74. command have names starting with "b10-", including:
  75. </p><p>
  76. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  77. <span class="command"><strong>b10-auth</strong></span> &#8212;
  78. Authoritative DNS server.
  79. This process serves DNS requests.
  80. </li><li class="listitem">
  81. <span class="command"><strong>b10-cfgmgr</strong></span> &#8212;
  82. Configuration manager.
  83. This process maintains all of the configuration for BIND 10.
  84. </li><li class="listitem">
  85. <span class="command"><strong>b10-cmdctl</strong></span> &#8212;
  86. Command and control service.
  87. This process allows external control of the BIND 10 system.
  88. </li><li class="listitem">
  89. <span class="command"><strong>b10-msgq</strong></span> &#8212;
  90. Message bus daemon.
  91. This process coordinates communication between all of the other
  92. BIND 10 processes.
  93. </li><li class="listitem">
  94. <span class="command"><strong>b10-resolver</strong></span> &#8212;
  95. Recursive name server.
  96. This process handles incoming queries.
  97. </li><li class="listitem">
  98. <span class="command"><strong>b10-sockcreator</strong></span> &#8212;
  99. Socket creator daemon.
  100. This process creates sockets used by
  101. network-listening BIND 10 processes.
  102. </li><li class="listitem">
  103. <span class="command"><strong>b10-stats</strong></span> &#8212;
  104. Statistics collection daemon.
  105. This process collects and reports statistics data.
  106. </li><li class="listitem">
  107. <span class="command"><strong>b10-stats-httpd</strong></span> &#8212;
  108. HTTP server for statistics reporting.
  109. This process reports statistics data in XML format over HTTP.
  110. </li><li class="listitem">
  111. <span class="command"><strong>b10-xfrin</strong></span> &#8212;
  112. Incoming zone transfer service.
  113. This process is used to transfer a new copy
  114. of a zone into BIND 10, when acting as a secondary server.
  115. </li><li class="listitem">
  116. <span class="command"><strong>b10-xfrout</strong></span> &#8212;
  117. Outgoing zone transfer service.
  118. This process is used to handle transfer requests to
  119. send a local zone to a remote secondary server,
  120. when acting as a master server.
  121. </li><li class="listitem">
  122. <span class="command"><strong>b10-zonemgr</strong></span> &#8212;
  123. Secondary manager.
  124. This process keeps track of timers and other
  125. necessary information for BIND 10 to act as a slave server.
  126. </li></ul></div><p>
  127. </p><p>
  128. These are ran automatically by <span class="command"><strong>bind10</strong></span>
  129. and do not need to be run manually.
  130. </p></div><div class="section" title="1.4. Managing BIND 10"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="managing_once_running"></a>1.4. Managing BIND 10</h2></div></div></div><p>
  131. Once BIND 10 is running, a few commands are used to interact
  132. directly with the system:
  133. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  134. <span class="command"><strong>bindctl</strong></span> &#8212;
  135. interactive administration interface.
  136. This is a low-level command-line tool which allows
  137. a developer or an experienced administrator to control
  138. BIND 10.
  139. </li><li class="listitem">
  140. <span class="command"><strong>b10-loadzone</strong></span> &#8212;
  141. zone file loader.
  142. This tool will load standard masterfile-format zone files into
  143. BIND 10.
  144. </li><li class="listitem">
  145. <span class="command"><strong>b10-cmdctl-usermgr</strong></span> &#8212;
  146. user access control.
  147. This tool allows an administrator to authorize additional users
  148. to manage BIND 10.
  149. </li></ul></div><p>
  150. </p></div><p>
  151. The tools and modules are covered in full detail in this guide.
  152. In addition, manual pages are also provided in the default installation.
  153. </p><p>
  154. BIND 10 also provides libraries and programmer interfaces
  155. for C++ and Python for the message bus, configuration backend,
  156. and, of course, DNS. These include detailed developer
  157. documentation and code examples.
  158. </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="#build-requirements">2.1. Building Requirements</a></span></dt><dt><span class="section"><a href="#quickstart">2.2. Quick start</a></span></dt><dt><span class="section"><a href="#install">2.3. Installation from source</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229436809">2.3.1. Download Tar File</a></span></dt><dt><span class="section"><a href="#id1168229436828">2.3.2. Retrieve from Git</a></span></dt><dt><span class="section"><a href="#id1168229436889">2.3.3. Configure before the build</a></span></dt><dt><span class="section"><a href="#id1168229436986">2.3.4. Build</a></span></dt><dt><span class="section"><a href="#id1168229437002">2.3.5. Install</a></span></dt><dt><span class="section"><a href="#id1168229437026">2.3.6. Install Hierarchy</a></span></dt></dl></dd></dl></div><div class="section" title="2.1. Building Requirements"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="build-requirements"></a>2.1. Building Requirements</h2></div></div></div><p>
  159. In addition to the run-time requirements, building BIND 10
  160. from source code requires various development include headers.
  161. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  162. Some operating systems have split their distribution packages into
  163. a run-time and a development package. You will need to install
  164. the development package versions, which include header files and
  165. libraries, to build BIND 10 from source code.
  166. </p></div><p>
  167. Building from source code requires the Boost
  168. build-time headers
  169. (<a class="ulink" href="http://www.boost.org/" target="_top">http://www.boost.org/</a>).
  170. At least Boost version 1.35 is required.
  171. </p><p>
  172. To build BIND 10, also install the Botan (at least version
  173. 1.8) and the log4cplus (at least version 1.0.3)
  174. development include headers.
  175. </p><p>
  176. Building BIND 10 also requires a C++ compiler and
  177. standard development headers, make, and pkg-config.
  178. BIND 10 builds have been tested with GCC g++ 3.4.3, 4.1.2,
  179. 4.1.3, 4.2.1, 4.3.2, and 4.4.1; Clang++ 2.8; and Sun C++ 5.10.
  180. </p><p>
  181. Visit the wiki at <a class="ulink" href="http://bind10.isc.org/wiki/SystemSpecificNotes" target="_top">http://bind10.isc.org/wiki/SystemSpecificNotes</a>
  182. for system-specific installation tips.
  183. </p></div><div class="section" title="2.2. Quick start"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="quickstart"></a>2.2. 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>
  184. This quickly covers the standard steps for installing
  185. and deploying BIND 10 as an authoritative name server using
  186. its defaults. For troubleshooting, full customizations and further
  187. details, see the respective chapters in the BIND 10 guide.
  188. </p></div><p>
  189. To quickly get started with BIND 10, follow these steps.
  190. </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
  191. Install required run-time and build dependencies.
  192. </li><li class="listitem">
  193. Download the BIND 10 source tar file from
  194. <a class="ulink" href="ftp://ftp.isc.org/isc/bind10/" target="_top">ftp://ftp.isc.org/isc/bind10/</a>.
  195. </li><li class="listitem"><p>Extract the tar file:
  196. </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>
  197. </p></li><li class="listitem"><p>Go into the source and run configure:
  198. </p><pre class="screen">$ <strong class="userinput"><code>cd bind10-<em class="replaceable"><code>VERSION</code></em></code></strong>
  199. $ <strong class="userinput"><code>./configure</code></strong></pre><p>
  200. </p></li><li class="listitem"><p>Build it:
  201. </p><pre class="screen">$ <strong class="userinput"><code>make</code></strong></pre><p>
  202. </p></li><li class="listitem"><p>Install it (to default /usr/local):
  203. </p><pre class="screen">$ <strong class="userinput"><code>make install</code></strong></pre><p>
  204. </p></li><li class="listitem"><p>Start the server:
  205. </p><pre class="screen">$ <strong class="userinput"><code>/usr/local/sbin/bind10</code></strong></pre><p>
  206. </p></li><li class="listitem"><p>Test it; for example:
  207. </p><pre class="screen">$ <strong class="userinput"><code>dig @127.0.0.1 -c CH -t TXT authors.bind</code></strong></pre><p>
  208. </p></li><li class="listitem"><p>Load desired zone file(s), for example:
  209. </p><pre class="screen">$ <strong class="userinput"><code>b10-loadzone <em class="replaceable"><code>your.zone.example.org</code></em></code></strong></pre><p>
  210. </p></li><li class="listitem">
  211. Test the new zone.
  212. </li></ol></div></div><div class="section" title="2.3. Installation from source"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="install"></a>2.3. Installation from source</h2></div></div></div><p>
  213. BIND 10 is open source software written in C++ and Python.
  214. It is freely available in source code form from ISC via
  215. the Git code revision control system or as a downloadable
  216. tar file. It may also be available in pre-compiled ready-to-use
  217. packages from operating system vendors.
  218. </p><div class="section" title="2.3.1. Download Tar File"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229436809"></a>2.3.1. Download Tar File</h3></div></div></div><p>
  219. Downloading a release tar file is the recommended method to
  220. obtain the source code.
  221. </p><p>
  222. The BIND 10 releases are available as tar file downloads from
  223. <a class="ulink" href="ftp://ftp.isc.org/isc/bind10/" target="_top">ftp://ftp.isc.org/isc/bind10/</a>.
  224. Periodic development snapshots may also be available.
  225. </p></div><div class="section" title="2.3.2. Retrieve from Git"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229436828"></a>2.3.2. Retrieve from Git</h3></div></div></div><p>
  226. Downloading this "bleeding edge" code is recommended only for
  227. developers or advanced users. Using development code in a production
  228. environment is not recommended.
  229. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  230. When using source code retrieved via Git additional
  231. software will be required: automake (v1.11 or newer),
  232. libtoolize, and autoconf (2.59 or newer).
  233. These may need to be installed.
  234. </p></div><p>
  235. The latest development code, including temporary experiments
  236. and un-reviewed code, is available via the BIND 10 code revision
  237. control system. This is powered by Git and all the BIND 10
  238. development is public.
  239. The leading development is done in the <span class="quote">&#8220;<span class="quote">master</span>&#8221;</span>.
  240. </p><p>
  241. The code can be checked out from
  242. <code class="filename">git://git.bind10.isc.org/bind10</code>;
  243. for example:
  244. </p><pre class="screen">$ <strong class="userinput"><code>git clone git://git.bind10.isc.org/bind10</code></strong></pre><p>
  245. </p><p>
  246. When checking out the code from
  247. the code version control system, it doesn't include the
  248. generated configure script, Makefile.in files, nor the
  249. related configure files.
  250. They can be created by running <span class="command"><strong>autoreconf</strong></span>
  251. with the <code class="option">--install</code> switch.
  252. This will run <span class="command"><strong>autoconf</strong></span>,
  253. <span class="command"><strong>aclocal</strong></span>,
  254. <span class="command"><strong>libtoolize</strong></span>,
  255. <span class="command"><strong>autoheader</strong></span>,
  256. <span class="command"><strong>automake</strong></span>,
  257. and related commands.
  258. </p></div><div class="section" title="2.3.3. Configure before the build"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229436889"></a>2.3.3. Configure before the build</h3></div></div></div><p>
  259. BIND 10 uses the GNU Build System to discover build environment
  260. details.
  261. To generate the makefiles using the defaults, simply run:
  262. </p><pre class="screen">$ <strong class="userinput"><code>./configure</code></strong></pre><p>
  263. </p><p>
  264. Run <span class="command"><strong>./configure</strong></span> with the <code class="option">--help</code>
  265. switch to view the different options. The commonly-used options are:
  266. </p><div class="variablelist"><dl><dt><span class="term">--prefix</span></dt><dd>Define the installation location (the
  267. default is <code class="filename">/usr/local/</code>).
  268. </dd><dt><span class="term">--with-boost-include</span></dt><dd>Define the path to find the Boost headers.
  269. </dd><dt><span class="term">--with-pythonpath</span></dt><dd>Define the path to Python 3.1 if it is not in the
  270. standard execution path.
  271. </dd><dt><span class="term">--with-gtest</span></dt><dd>Enable building the C++ Unit Tests using the
  272. Google Tests framework. Optionally this can define the
  273. path to the gtest header files and library.
  274. </dd></dl></div><p>
  275. </p><p>
  276. For example, the following configures it to
  277. find the Boost headers, find the
  278. Python interpreter, and sets the installation location:
  279. </p><pre class="screen">$ <strong class="userinput"><code>./configure \
  280. --with-boost-include=/usr/pkg/include \
  281. --with-pythonpath=/usr/pkg/bin/python3.1 \
  282. --prefix=/opt/bind10</code></strong></pre><p>
  283. </p><p>
  284. If the configure fails, it may be due to missing or old
  285. dependencies.
  286. </p></div><div class="section" title="2.3.4. Build"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229436986"></a>2.3.4. Build</h3></div></div></div><p>
  287. After the configure step is complete, to build the executables
  288. from the C++ code and prepare the Python scripts, run:
  289. </p><pre class="screen">$ <strong class="userinput"><code>make</code></strong></pre><p>
  290. </p></div><div class="section" title="2.3.5. Install"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229437002"></a>2.3.5. Install</h3></div></div></div><p>
  291. To install the BIND 10 executables, support files,
  292. and documentation, run:
  293. </p><pre class="screen">$ <strong class="userinput"><code>make install</code></strong></pre><p>
  294. </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="2.3.6. Install Hierarchy"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229437026"></a>2.3.6. Install Hierarchy</h3></div></div></div><p>
  295. The following is the layout of the complete BIND 10 installation:
  296. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
  297. <code class="filename">bin/</code> &#8212;
  298. general tools and diagnostic clients.
  299. </li><li class="listitem">
  300. <code class="filename">etc/bind10-devel/</code> &#8212;
  301. configuration files.
  302. </li><li class="listitem">
  303. <code class="filename">lib/</code> &#8212;
  304. libraries and python modules.
  305. </li><li class="listitem">
  306. <code class="filename">libexec/bind10-devel/</code> &#8212;
  307. executables that a user wouldn't normally run directly and
  308. are not run independently.
  309. These are the BIND 10 modules which are daemons started by
  310. the <span class="command"><strong>bind10</strong></span> tool.
  311. </li><li class="listitem">
  312. <code class="filename">sbin/</code> &#8212;
  313. commands used by the system administrator.
  314. </li><li class="listitem">
  315. <code class="filename">share/bind10-devel/</code> &#8212;
  316. configuration specifications.
  317. </li><li class="listitem">
  318. <code class="filename">share/man/</code> &#8212;
  319. manual pages (online documentation).
  320. </li><li class="listitem">
  321. <code class="filename">var/bind10-devel/</code> &#8212;
  322. data source and configuration databases.
  323. </li></ul></div><p>
  324. </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">3.1. Starting BIND 10</a></span></dt><dt><span class="section"><a href="#bind10.config">3.2. Configuration of started processes</a></span></dt></dl></div><p>
  325. BIND 10 provides the <span class="command"><strong>bind10</strong></span> command which
  326. starts up the required processes.
  327. <span class="command"><strong>bind10</strong></span>
  328. will also restart some processes that exit unexpectedly.
  329. This is the only command needed to start the BIND 10 system.
  330. </p><p>
  331. After starting the <span class="command"><strong>b10-msgq</strong></span> communications channel,
  332. <span class="command"><strong>bind10</strong></span> connects to it,
  333. runs the configuration manager, and reads its own configuration.
  334. Then it starts the other modules.
  335. </p><p>
  336. The <span class="command"><strong>b10-sockcreator</strong></span>, <span class="command"><strong>b10-msgq</strong></span> and
  337. <span class="command"><strong>b10-cfgmgr</strong></span>
  338. services make up the core. The <span class="command"><strong>b10-msgq</strong></span> daemon
  339. provides the communication channel between every part of the system.
  340. The <span class="command"><strong>b10-cfgmgr</strong></span> daemon is always needed by every
  341. module, if only to send information about themselves somewhere,
  342. but more importantly to ask about their own settings, and
  343. about other modules. The <span class="command"><strong>b10-sockcreator</strong></span> will
  344. allocate sockets for the rest of the system.
  345. </p><p>
  346. In its default configuration, the <span class="command"><strong>bind10</strong></span>
  347. master process will also start up
  348. <span class="command"><strong>b10-cmdctl</strong></span> for administration tools to
  349. communicate with the system,
  350. <span class="command"><strong>b10-auth</strong></span> for authoritative DNS service,
  351. <span class="command"><strong>b10-stats</strong></span> for statistics collection,
  352. <span class="command"><strong>b10-stats-httpd</strong></span> for statistics reporting,
  353. <span class="command"><strong>b10-xfrin</strong></span> for inbound DNS zone transfers,
  354. <span class="command"><strong>b10-xfrout</strong></span> for outbound DNS zone transfers,
  355. and <span class="command"><strong>b10-zonemgr</strong></span> for secondary service.
  356. </p><div class="section" title="3.1. Starting BIND 10"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="start"></a>3.1. Starting BIND 10</h2></div></div></div><p>
  357. To start the BIND 10 service, simply run <span class="command"><strong>bind10</strong></span>.
  358. Run it with the <code class="option">--verbose</code> switch to
  359. get additional debugging or diagnostic output.
  360. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  361. If the setproctitle Python module is detected at start up,
  362. the process names for the Python-based daemons will be renamed
  363. to better identify them instead of just <span class="quote">&#8220;<span class="quote">python</span>&#8221;</span>.
  364. This is not needed on some operating systems.
  365. </p></div></div><div class="section" title="3.2. Configuration of started processes"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="bind10.config"></a>3.2. Configuration of started processes</h2></div></div></div><p>
  366. The processes to be started can be configured, with the exception
  367. of the <span class="command"><strong>b10-sockcreator</strong></span>, <span class="command"><strong>b10-msgq</strong></span>
  368. and <span class="command"><strong>b10-cfgmgr</strong></span>.
  369. </p><p>
  370. The configuration is in the Boss/components section. Each element
  371. represents one component, which is an abstraction of a process
  372. (currently there's also one component which doesn't represent
  373. a process). If you didn't want to transfer out at all (your server
  374. is a slave only), you would just remove the corresponding component
  375. from the set, like this and the process would be stopped immediately
  376. (and not started on the next startup):
  377. </p><pre class="screen">&gt; <strong class="userinput"><code>config remove Boss/components b10-xfrout</code></strong>
  378. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>
  379. </p><p>
  380. To add a process to the set, let's say the resolver (which not started
  381. by default), you would do this:
  382. </p><pre class="screen">&gt; <strong class="userinput"><code>config add Boss/components b10-resolver</code></strong>
  383. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/special resolver</code></strong>
  384. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/kind needed</code></strong>
  385. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/priority 10</code></strong>
  386. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>
  387. Now, what it means. We add an entry called b10-resolver. It is both a
  388. name used to reference this component in the configuration and the
  389. name of the process to start. Then we set some parameters on how to
  390. start it.
  391. </p><p>
  392. The special one is for components that need some kind of special care
  393. during startup or shutdown. Unless specified, the component is started
  394. in usual way. This is the list of components that need to be started
  395. in a special way, with the value of special used for them:
  396. </p><div class="table"><a name="id1168229437291"></a><p class="title"><b>Table 3.1. </b></p><div class="table-contents"><table border="1"><colgroup><col align="left"><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Component</th><th align="left">Special</th><th align="left">Description</th></tr></thead><tbody><tr><td align="left">b10-auth</td><td align="left">auth</td><td align="left">Authoritative server</td></tr><tr><td align="left">b10-resolver</td><td align="left">resolver</td><td align="left">The resolver</td></tr><tr><td align="left">b10-cmdctl</td><td align="left">cmdctl</td><td align="left">The command control (remote control interface)</td></tr></tbody></table></div></div><p><br class="table-break">
  397. </p><p>
  398. The kind specifies how a failure of the component should
  399. be handled. If it is set to <span class="quote">&#8220;<span class="quote">dispensable</span>&#8221;</span>
  400. (the default unless you set something else), it will get
  401. started again if it fails. If it is set to <span class="quote">&#8220;<span class="quote">needed</span>&#8221;</span>
  402. and it fails at startup, the whole <span class="command"><strong>bind10</strong></span>
  403. shuts down and exits with error exit code. But if it fails
  404. some time later, it is just started again. If you set it
  405. to <span class="quote">&#8220;<span class="quote">core</span>&#8221;</span>, you indicate that the system is
  406. not usable without the component and if such component
  407. fails, the system shuts down no matter when the failure
  408. happened. This is the behaviour of the core components
  409. (the ones you can't turn off), but you can declare any
  410. other components as core as well if you wish (but you can
  411. turn these off, they just can't fail).
  412. </p><p>
  413. The priority defines order in which the components should start.
  414. The ones with higher number are started sooner than the ones with
  415. lower ones. If you don't set it, 0 (zero) is used as the priority.
  416. Usually, leaving it at the default is enough.
  417. </p><p>
  418. There are other parameters we didn't use in our example.
  419. One of them is <span class="quote">&#8220;<span class="quote">address</span>&#8221;</span>. It is the address
  420. used by the component on the <span class="command"><strong>b10-msgq</strong></span>
  421. message bus. The special components already know their
  422. address, but the usual ones don't. The address is by
  423. convention the thing after <span class="emphasis"><em>b10-</em></span>, with
  424. the first letter capital (eg. <span class="command"><strong>b10-stats</strong></span>
  425. would have <span class="quote">&#8220;<span class="quote">Stats</span>&#8221;</span> as its address).
  426. </p><p>
  427. The last one is process. It is the name of the process to be started.
  428. It defaults to the name of the component if not set, but you can use
  429. this to override it.
  430. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  431. This system allows you to start the same component multiple times
  432. (by including it in the configuration with different names, but the
  433. same process setting). However, the rest of the system doesn't expect
  434. such situation, so it would probably not do what you want. Such
  435. support is yet to be implemented.
  436. </p></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  437. The configuration is quite powerful, but that includes
  438. a lot of space for mistakes. You could turn off the
  439. <span class="command"><strong>b10-cmdctl</strong></span>, but then you couldn't
  440. change it back the usual way, as it would require it to
  441. be running (you would have to find and edit the configuration
  442. directly). Also, some modules might have dependencies
  443. -- <span class="command"><strong>b10-stats-httpd</strong></span> need
  444. <span class="command"><strong>b10-stats</strong></span>, <span class="command"><strong>b10-xfrout</strong></span>
  445. needs the <span class="command"><strong>b10-auth</strong></span> to be running, etc.
  446. </p><p>
  447. In short, you should think twice before disabling something here.
  448. </p></div><p>
  449. It is possible to start some components multiple times (currently
  450. <span class="command"><strong>b10-auth</strong></span> and <span class="command"><strong>b10-resolzer</strong></span>).
  451. You might want to do that to gain more performance (each one uses only
  452. single core). Just put multiple entries under different names, like
  453. this, with the same config:
  454. </p><pre class="screen">&gt; <strong class="userinput"><code>config add Boss/components b10-resolver-2</code></strong>
  455. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver-2/special resolver</code></strong>
  456. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver-2/kind needed</code></strong>
  457. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>
  458. </p><p>
  459. However, this is work in progress and the support is not yet complete.
  460. For example, each resolver will have its own cache, each authoritative
  461. server will keep its own copy of in-memory data and there could be
  462. problems with locking the sqlite database, if used. The configuration
  463. might be changed to something more convenient in future.
  464. </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>
  465. The BIND 10 components use the <span class="command"><strong>b10-msgq</strong></span>
  466. message routing daemon to communicate with other BIND 10 components.
  467. The <span class="command"><strong>b10-msgq</strong></span> implements what is called the
  468. <span class="quote">&#8220;<span class="quote">Command Channel</span>&#8221;</span>.
  469. Processes intercommunicate by sending messages on the command
  470. channel.
  471. Example messages include shutdown, get configurations, and set
  472. configurations.
  473. This Command Channel is not used for DNS message passing.
  474. It is used only to control and monitor the BIND 10 system.
  475. </p><p>
  476. Administrators do not communicate directly with the
  477. <span class="command"><strong>b10-msgq</strong></span> daemon.
  478. By default, BIND 10 uses port 9912 for the
  479. <span class="command"><strong>b10-msgq</strong></span> service.
  480. It listens on 127.0.0.1.
  481. </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>
  482. The configuration manager, <span class="command"><strong>b10-cfgmgr</strong></span>,
  483. handles all BIND 10 system configuration. It provides
  484. persistent storage for configuration, and notifies running
  485. modules of configuration changes.
  486. </p><p>
  487. The <span class="command"><strong>b10-auth</strong></span> and <span class="command"><strong>b10-xfrin</strong></span>
  488. daemons and other components receive their configurations
  489. from the configuration manager over the <span class="command"><strong>b10-msgq</strong></span>
  490. command channel.
  491. </p><p>The administrator doesn't connect to it directly, but
  492. uses a user interface to communicate with the configuration
  493. manager via <span class="command"><strong>b10-cmdctl</strong></span>'s REST-ful interface.
  494. <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>.
  495. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  496. The development prototype release only provides the
  497. <span class="command"><strong>bindctl</strong></span> as a user interface to
  498. <span class="command"><strong>b10-cmdctl</strong></span>.
  499. Upcoming releases will provide another interactive command-line
  500. interface and a web-based interface.
  501. </p></div><p>
  502. The <span class="command"><strong>b10-cfgmgr</strong></span> daemon can send all
  503. specifications and all current settings to the
  504. <span class="command"><strong>bindctl</strong></span> client (via
  505. <span class="command"><strong>b10-cmdctl</strong></span>).
  506. </p><p>
  507. <span class="command"><strong>b10-cfgmgr</strong></span> relays configurations received
  508. from <span class="command"><strong>b10-cmdctl</strong></span> to the appropriate modules.
  509. </p><p>
  510. The stored configuration file is at
  511. <code class="filename">/usr/local/var/bind10-devel/b10-config.db</code>.
  512. (The full path is what was defined at build configure time for
  513. <code class="option">--localstatedir</code>.
  514. The default is <code class="filename">/usr/local/var/</code>.)
  515. The format is loosely based on JSON and is directly parseable
  516. python, but this may change in a future version.
  517. This configuration data file is not manually edited by the
  518. administrator.
  519. </p><p>
  520. The configuration manager does not have any command line arguments.
  521. Normally it is not started manually, but is automatically
  522. started using the <span class="command"><strong>bind10</strong></span> master process
  523. (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>).
  524. </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">6.1. Configuration specification for b10-cmdctl</a></span></dt></dl></div><p>
  525. <span class="command"><strong>b10-cmdctl</strong></span> is the gateway between
  526. administrators and the BIND 10 system.
  527. It is a HTTPS server that uses standard HTTP Digest
  528. Authentication for username and password validation.
  529. It provides a REST-ful interface for accessing and controlling
  530. BIND 10.
  531. </p><p>
  532. When <span class="command"><strong>b10-cmdctl</strong></span> starts, it firsts
  533. asks <span class="command"><strong>b10-cfgmgr</strong></span> about what modules are
  534. running and what their configuration is (over the
  535. <span class="command"><strong>b10-msgq</strong></span> channel). Then it will start listening
  536. on HTTPS for clients &#8212; the user interface &#8212; such
  537. as <span class="command"><strong>bindctl</strong></span>.
  538. </p><p>
  539. <span class="command"><strong>b10-cmdctl</strong></span> directly sends commands
  540. (received from the user interface) to the specified component.
  541. Configuration changes are actually commands to
  542. <span class="command"><strong>b10-cfgmgr</strong></span> so are sent there.
  543. </p><p>The HTTPS server requires a private key,
  544. such as a RSA PRIVATE KEY.
  545. The default location is at
  546. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-keyfile.pem</code>.
  547. (A sample key is at
  548. <code class="filename">/usr/local/share/bind10-devel/cmdctl-keyfile.pem</code>.)
  549. It also uses a certificate located at
  550. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-certfile.pem</code>.
  551. (A sample certificate is at
  552. <code class="filename">/usr/local/share/bind10-devel/cmdctl-certfile.pem</code>.)
  553. This may be a self-signed certificate or purchased from a
  554. certification authority.
  555. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  556. The HTTPS server doesn't support a certificate request from a
  557. client (at this time).
  558. The <span class="command"><strong>b10-cmdctl</strong></span> daemon does not provide a
  559. public service. If any client wants to control BIND 10, then
  560. a certificate needs to be first received from the BIND 10
  561. administrator.
  562. The BIND 10 installation provides a sample PEM bundle that matches
  563. the sample key and certificate.
  564. </p></div><p>
  565. The <span class="command"><strong>b10-cmdctl</strong></span> daemon also requires
  566. the user account file located at
  567. <code class="filename">/usr/local/etc/bind10-devel/cmdctl-accounts.csv</code>.
  568. This comma-delimited file lists the accounts with a user name,
  569. hashed password, and salt.
  570. (A sample file is at
  571. <code class="filename">/usr/local/share/bind10-devel/cmdctl-accounts.csv</code>.
  572. It contains the user named <span class="quote">&#8220;<span class="quote">root</span>&#8221;</span> with the password
  573. <span class="quote">&#8220;<span class="quote">bind10</span>&#8221;</span>.)
  574. </p><p>
  575. The administrator may create a user account with the
  576. <span class="command"><strong>b10-cmdctl-usermgr</strong></span> tool.
  577. </p><p>
  578. By default the HTTPS server listens on the localhost port 8080.
  579. The port can be set by using the <code class="option">--port</code> command line option.
  580. The address to listen on can be set using the <code class="option">--address</code> command
  581. line argument.
  582. Each HTTPS connection is stateless and timesout in 1200 seconds
  583. by default. This can be
  584. redefined by using the <code class="option">--idle-timeout</code> command line argument.
  585. </p><div class="section" title="6.1. Configuration specification for b10-cmdctl"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cmdctl.spec"></a>6.1. Configuration specification for b10-cmdctl</h2></div></div></div><p>
  586. The configuration items for <span class="command"><strong>b10-cmdctl</strong></span> are:
  587. key_file
  588. cert_file
  589. accounts_file
  590. </p><p>
  591. The control commands are:
  592. print_settings
  593. shutdown
  594. </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>
  595. For this development prototype release, <span class="command"><strong>bindctl</strong></span>
  596. is the only user interface. It is expected that upcoming
  597. releases will provide another interactive command-line
  598. interface and a web-based interface for controlling and
  599. configuring BIND 10.
  600. </p></div><p>
  601. The <span class="command"><strong>bindctl</strong></span> tool provides an interactive
  602. prompt for configuring, controlling, and querying the BIND 10
  603. components.
  604. It communicates directly with a REST-ful interface over HTTPS
  605. provided by <span class="command"><strong>b10-cmdctl</strong></span>. It doesn't
  606. communicate to any other components directly.
  607. </p><p>
  608. Configuration changes are actually commands to
  609. <span class="command"><strong>b10-cfgmgr</strong></span>. So when <span class="command"><strong>bindctl</strong></span>
  610. sends a configuration, it is sent to <span class="command"><strong>b10-cmdctl</strong></span>
  611. (over a HTTPS connection); then <span class="command"><strong>b10-cmdctl</strong></span>
  612. sends the command (over a <span class="command"><strong>b10-msgq</strong></span> command
  613. channel) to <span class="command"><strong>b10-cfgmgr</strong></span> which then stores
  614. the details and relays (over a <span class="command"><strong>b10-msgq</strong></span> command
  615. channel) the configuration on to the specified module.
  616. </p><p>
  617. </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="#id1168229437990">8.1. Server Configurations</a></span></dt><dt><span class="section"><a href="#id1168229438055">8.2. Data Source Backends</a></span></dt><dt><span class="section"><a href="#id1168229438085">8.3. Loading Master Zones Files</a></span></dt></dl></div><p>
  618. The <span class="command"><strong>b10-auth</strong></span> is the authoritative DNS server.
  619. It supports EDNS0 and DNSSEC. It supports IPv6.
  620. Normally it is started by the <span class="command"><strong>bind10</strong></span> master
  621. process.
  622. </p><div class="section" title="8.1. Server Configurations"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229437990"></a>8.1. Server Configurations</h2></div></div></div><p>
  623. <span class="command"><strong>b10-auth</strong></span> is configured via the
  624. <span class="command"><strong>b10-cfgmgr</strong></span> configuration manager.
  625. The module name is <span class="quote">&#8220;<span class="quote">Auth</span>&#8221;</span>.
  626. The configuration data item is:
  627. </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
  628. the SQLite3 database file.
  629. Note: Later the DNS server will use various data source backends.
  630. This may be a temporary setting until then.
  631. </dd></dl></div><p>
  632. </p><p>
  633. The configuration command is:
  634. </p><div class="variablelist"><dl><dt><span class="term">shutdown</span></dt><dd>Stop the authoritative DNS server.
  635. </dd></dl></div><p>
  636. </p></div><div class="section" title="8.2. Data Source Backends"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438055"></a>8.2. 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>
  637. For the development prototype release, <span class="command"><strong>b10-auth</strong></span>
  638. supports a SQLite3 data source backend and in-memory data source
  639. backend.
  640. Upcoming versions will be able to use multiple different
  641. data sources, such as MySQL and Berkeley DB.
  642. </p></div><p>
  643. By default, the SQLite3 backend uses the data file located at
  644. <code class="filename">/usr/local/var/bind10-devel/zone.sqlite3</code>.
  645. (The full path is what was defined at build configure time for
  646. <code class="option">--localstatedir</code>.
  647. The default is <code class="filename">/usr/local/var/</code>.)
  648. This data file location may be changed by defining the
  649. <span class="quote">&#8220;<span class="quote">database_file</span>&#8221;</span> configuration.
  650. </p></div><div class="section" title="8.3. Loading Master Zones Files"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438085"></a>8.3. Loading Master Zones Files</h2></div></div></div><p>
  651. RFC 1035 style DNS master zone files may imported
  652. into a BIND 10 data source by using the
  653. <span class="command"><strong>b10-loadzone</strong></span> utility.
  654. </p><p>
  655. <span class="command"><strong>b10-loadzone</strong></span> supports the following
  656. special directives (control entries):
  657. </p><div class="variablelist"><dl><dt><span class="term">$INCLUDE</span></dt><dd>Loads an additional zone file. This may be recursive.
  658. </dd><dt><span class="term">$ORIGIN</span></dt><dd>Defines the relative domain name.
  659. </dd><dt><span class="term">$TTL</span></dt><dd>Defines the time-to-live value used for following
  660. records that don't include a TTL.
  661. </dd></dl></div><p>
  662. </p><p>
  663. The <code class="option">-o</code> argument may be used to define the
  664. default origin for loaded zone file records.
  665. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  666. In the development prototype release, only the SQLite3 back
  667. end is used.
  668. By default, it stores the zone data in
  669. <code class="filename">/usr/local/var/bind10-devel/zone.sqlite3</code>
  670. unless the <code class="option">-d</code> switch is used to set the
  671. database filename.
  672. Multiple zones are stored in a single SQLite3 zone database.
  673. </p></div><p>
  674. If you reload a zone already existing in the database,
  675. all records from that prior zone disappear and a whole new set
  676. appears.
  677. </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><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168229438216">9.1. Configuration for Incoming Zone Transfers</a></span></dt><dt><span class="section"><a href="#id1168229438254">9.2. Enabling IXFR</a></span></dt><dt><span class="section"><a href="#zonemgr">9.3. Secondary Manager</a></span></dt><dt><span class="section"><a href="#id1168229438369">9.4. Trigger an Incoming Zone Transfer Manually</a></span></dt></dl></div><p>
  678. Incoming zones are transferred using the <span class="command"><strong>b10-xfrin</strong></span>
  679. process which is started by <span class="command"><strong>bind10</strong></span>.
  680. When received, the zone is stored in the corresponding BIND 10
  681. data source, and its records can be served by
  682. <span class="command"><strong>b10-auth</strong></span>.
  683. In combination with <span class="command"><strong>b10-zonemgr</strong></span> (for
  684. automated SOA checks), this allows the BIND 10 server to
  685. provide <span class="quote">&#8220;<span class="quote">secondary</span>&#8221;</span> service.
  686. </p><p>
  687. The <span class="command"><strong>b10-xfrin</strong></span> process supports both AXFR and
  688. IXFR. Due to some implementation limitations of the current
  689. development release, however, it only tries AXFR by default,
  690. and care should be taken to enable IXFR.
  691. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  692. In the current development release of BIND 10, incoming zone
  693. transfers are only available for SQLite3-based data sources,
  694. that is, they don't work for an in-memory data source.
  695. </p></div><div class="section" title="9.1. Configuration for Incoming Zone Transfers"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438216"></a>9.1. Configuration for Incoming Zone Transfers</h2></div></div></div><p>
  696. In practice, you need to specify a list of secondary zones to
  697. enable incoming zone transfers for these zones (you can still
  698. trigger a zone transfer manually, without a prior configuration
  699. (see below)).
  700. </p><p>
  701. For example, to enable zone transfers for a zone named "example.com"
  702. (whose master address is assumed to be 2001:db8::53 here),
  703. run the following at the <span class="command"><strong>bindctl</strong></span> prompt:
  704. </p><pre class="screen">&gt; <strong class="userinput"><code>config add Xfrin/zones</code></strong>
  705. &gt; <strong class="userinput"><code>config set Xfrin/zones[0]/name "<code class="option">example.com</code>"</code></strong>
  706. &gt; <strong class="userinput"><code>config set Xfrin/zones[0]/master_addr "<code class="option">2001:db8::53</code>"</code></strong>
  707. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>
  708. (We assume there has been no zone configuration before).
  709. </p></div><div class="section" title="9.2. Enabling IXFR"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438254"></a>9.2. Enabling IXFR</h2></div></div></div><p>
  710. As noted above, <span class="command"><strong>b10-xfrin</strong></span> uses AXFR for
  711. zone transfers by default. To enable IXFR for zone transfers
  712. for a particular zone, set the <strong class="userinput"><code>use_ixfr</code></strong>
  713. configuration parameter to <strong class="userinput"><code>true</code></strong>.
  714. In the above example of configuration sequence, you'll need
  715. to add the following before performing <strong class="userinput"><code>commit</code></strong>:
  716. </p><pre class="screen">&gt; <strong class="userinput"><code>config set Xfrin/zones[0]/use_ixfr true</code></strong></pre><p>
  717. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  718. One reason why IXFR is disabled by default in the current
  719. release is because it does not support automatic fallback from IXFR to
  720. AXFR when it encounters a primary server that doesn't support
  721. outbound IXFR (and, not many existing implementations support
  722. it). Another, related reason is that it does not use AXFR even
  723. if it has no knowledge about the zone (like at the very first
  724. time the secondary server is set up). IXFR requires the
  725. "current version" of the zone, so obviously it doesn't work
  726. in this situation and AXFR is the only workable choice.
  727. The current release of <span class="command"><strong>b10-xfrin</strong></span> does not
  728. make this selection automatically.
  729. These features will be implemented in a near future
  730. version, at which point we will enable IXFR by default.
  731. </p></div></div><div class="section" title="9.3. Secondary Manager"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="zonemgr"></a>9.3. Secondary Manager</h2></div></div></div><p>
  732. The <span class="command"><strong>b10-zonemgr</strong></span> process is started by
  733. <span class="command"><strong>bind10</strong></span>.
  734. It keeps track of SOA refresh, retry, and expire timers
  735. and other details for BIND 10 to perform as a slave.
  736. When the <span class="command"><strong>b10-auth</strong></span> authoritative DNS server
  737. receives a NOTIFY message, <span class="command"><strong>b10-zonemgr</strong></span>
  738. may tell <span class="command"><strong>b10-xfrin</strong></span> to do a refresh
  739. to start an inbound zone transfer.
  740. The secondary manager resets its counters when a new zone is
  741. transferred in.
  742. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  743. Access control (such as allowing notifies) is not yet provided.
  744. The primary/secondary service is not yet complete.
  745. </p></div><p>
  746. The following example shows using <span class="command"><strong>bindctl</strong></span>
  747. to configure the server to be a secondary for the example zone:
  748. </p><pre class="screen">&gt; <strong class="userinput"><code>config add Zonemgr/secondary_zones</code></strong>
  749. &gt; <strong class="userinput"><code>config set Zonemgr/secondary_zones[0]/name "<code class="option">example.com</code>"</code></strong>
  750. &gt; <strong class="userinput"><code>config set Zonemgr/secondary_zones[0]/class "<code class="option">IN</code>"</code></strong>
  751. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>
  752. </p><p>
  753. If the zone does not exist in the data source already
  754. (i.e. no SOA record for it), <span class="command"><strong>b10-zonemgr</strong></span>
  755. will automatically tell <span class="command"><strong>b10-xfrin</strong></span>
  756. to transfer the zone in.
  757. </p></div><div class="section" title="9.4. Trigger an Incoming Zone Transfer Manually"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438369"></a>9.4. Trigger an Incoming Zone Transfer Manually</h2></div></div></div><p>
  758. To manually trigger a zone transfer to retrieve a remote zone,
  759. you may use the <span class="command"><strong>bindctl</strong></span> utility.
  760. For example, at the <span class="command"><strong>bindctl</strong></span> prompt run:
  761. </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>
  762. </p></div></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>
  763. The <span class="command"><strong>b10-xfrout</strong></span> process is started by
  764. <span class="command"><strong>bind10</strong></span>.
  765. When the <span class="command"><strong>b10-auth</strong></span> authoritative DNS server
  766. receives an AXFR or IXFR request, <span class="command"><strong>b10-auth</strong></span>
  767. internally forwards the request to <span class="command"><strong>b10-xfrout</strong></span>,
  768. which handles the rest of request processing.
  769. This is used to provide primary DNS service to share zones
  770. to secondary name servers.
  771. The <span class="command"><strong>b10-xfrout</strong></span> is also used to send
  772. NOTIFY messages to secondary servers.
  773. </p><p>
  774. A global or per zone <code class="option">transfer_acl</code> configuration
  775. can be used to control accessibility of the outbound zone
  776. transfer service.
  777. By default, <span class="command"><strong>b10-xfrout</strong></span> allows any clients to
  778. perform zone transfers for any zones:
  779. </p><pre class="screen">&gt; <strong class="userinput"><code>config show Xfrout/transfer_acl</code></strong>
  780. Xfrout/transfer_acl[0] {"action": "ACCEPT"} any (default)</pre><p>
  781. You can change this to, for example, rejecting all transfer
  782. requests by default while allowing requests for the transfer
  783. of zone "example.com" from 192.0.2.1 and 2001:db8::1 as follows:
  784. </p><pre class="screen">&gt; <strong class="userinput"><code>config set Xfrout/transfer_acl[0] {"action": "REJECT"}</code></strong>
  785. &gt; <strong class="userinput"><code>config add Xfrout/zone_config</code></strong>
  786. &gt; <strong class="userinput"><code>config set Xfrout/zone_config[0]/origin "example.com"</code></strong>
  787. &gt; <strong class="userinput"><code>config set Xfrout/zone_config[0]/transfer_acl [{"action": "ACCEPT", "from": "192.0.2.1"},</code></strong>
  788. <strong class="userinput"><code> {"action": "ACCEPT", "from": "2001:db8::1"}]</code></strong>
  789. &gt; <strong class="userinput"><code>config commit</code></strong></pre><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  790. In the above example the lines
  791. for <code class="option">transfer_acl</code> were divided for
  792. readability. In the actual input it must be in a single line.
  793. </p></div><p>
  794. If you want to require TSIG in access control, a system wide TSIG
  795. "key ring" must be configured.
  796. For example, to change the previous example to allowing requests
  797. from 192.0.2.1 signed by a TSIG with a key name of
  798. "key.example", you'll need to do this:
  799. </p><pre class="screen">&gt; <strong class="userinput"><code>config set tsig_keys/keys ["key.example:&lt;base64-key&gt;"]</code></strong>
  800. &gt; <strong class="userinput"><code>config set Xfrout/zone_config[0]/transfer_acl [{"action": "ACCEPT", "from": "192.0.2.1", "key": "key.example"}]</code></strong>
  801. &gt; <strong class="userinput"><code>config commit</code></strong></pre><p>Both Xfrout and Auth will use the system wide keyring to check
  802. TSIGs in the incomming messages and to sign responses.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  803. The way to specify zone specific configuration (ACLs, etc) is
  804. likely to be changed.
  805. </p></div></div><div class="chapter" title="Chapter 11. Recursive Name Server"><div class="titlepage"><div><div><h2 class="title"><a name="resolverserver"></a>Chapter 11. Recursive Name Server</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168229438715">11.1. Access Control</a></span></dt><dt><span class="section"><a href="#id1168229438900">11.2. Forwarding</a></span></dt></dl></div><p>
  806. The <span class="command"><strong>b10-resolver</strong></span> process is started by
  807. <span class="command"><strong>bind10</strong></span>.
  808. </p><p>
  809. The main <span class="command"><strong>bind10</strong></span> process can be configured
  810. to select to run either the authoritative or resolver or both.
  811. By default, it starts the authoritative service.
  812. You may change this using <span class="command"><strong>bindctl</strong></span>, for example:
  813. </p><pre class="screen">
  814. &gt; <strong class="userinput"><code>config remove Boss/components b10-xfrout</code></strong>
  815. &gt; <strong class="userinput"><code>config remove Boss/components b10-xfrin</code></strong>
  816. &gt; <strong class="userinput"><code>config remove Boss/components b10-auth</code></strong>
  817. &gt; <strong class="userinput"><code>config add Boss/components b10-resolver</code></strong>
  818. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/special resolver</code></strong>
  819. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/kind needed</code></strong>
  820. &gt; <strong class="userinput"><code>config set Boss/components/b10-resolver/priority 10</code></strong>
  821. &gt; <strong class="userinput"><code>config commit</code></strong>
  822. </pre><p>
  823. </p><p>
  824. The master <span class="command"><strong>bind10</strong></span> will stop and start
  825. the desired services.
  826. </p><p>
  827. By default, the resolver listens on port 53 for 127.0.0.1 and ::1.
  828. The following example shows how it can be configured to
  829. listen on an additional address (and port):
  830. </p><pre class="screen">
  831. &gt; <strong class="userinput"><code>config add Resolver/listen_on</code></strong>
  832. &gt; <strong class="userinput"><code>config set Resolver/listen_on[<em class="replaceable"><code>2</code></em>]/address "192.168.1.1"</code></strong>
  833. &gt; <strong class="userinput"><code>config set Resolver/listen_on[<em class="replaceable"><code>2</code></em>]/port 53</code></strong>
  834. &gt; <strong class="userinput"><code>config commit</code></strong>
  835. </pre><p>
  836. </p><p>(Replace the <span class="quote">&#8220;<span class="quote"><em class="replaceable"><code>2</code></em></span>&#8221;</span>
  837. as needed; run <span class="quote">&#8220;<span class="quote"><strong class="userinput"><code>config show
  838. Resolver/listen_on</code></strong></span>&#8221;</span> if needed.)</p><div class="section" title="11.1. Access Control"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438715"></a>11.1. Access Control</h2></div></div></div><p>
  839. By default, the <span class="command"><strong>b10-resolver</strong></span> daemon only accepts
  840. DNS queries from the localhost (127.0.0.1 and ::1).
  841. The <code class="option">Resolver/query_acl</code> configuration may
  842. be used to reject, drop, or allow specific IPs or networks.
  843. This configuration list is first match.
  844. </p><p>
  845. The configuration's <code class="option">action</code> item may be
  846. set to <span class="quote">&#8220;<span class="quote">ACCEPT</span>&#8221;</span> to allow the incoming query,
  847. <span class="quote">&#8220;<span class="quote">REJECT</span>&#8221;</span> to respond with a DNS REFUSED return
  848. code, or <span class="quote">&#8220;<span class="quote">DROP</span>&#8221;</span> to ignore the query without
  849. any response (such as a blackhole). For more information,
  850. see the respective debugging messages: <a class="ulink" href="bind10-messages.html#RESOLVER_QUERY_ACCEPTED" target="_top">RESOLVER_QUERY_ACCEPTED</a>,
  851. <a class="ulink" href="bind10-messages.html#RESOLVER_QUERY_REJECTED" target="_top">RESOLVER_QUERY_REJECTED</a>,
  852. and <a class="ulink" href="bind10-messages.html#RESOLVER_QUERY_DROPPED" target="_top">RESOLVER_QUERY_DROPPED</a>.
  853. </p><p>
  854. The required configuration's <code class="option">from</code> item is set
  855. to an IPv4 or IPv6 address, addresses with an network mask, or to
  856. the special lowercase keywords <span class="quote">&#8220;<span class="quote">any6</span>&#8221;</span> (for
  857. any IPv6 address) or <span class="quote">&#8220;<span class="quote">any4</span>&#8221;</span> (for any IPv4
  858. address).
  859. </p><p>
  860. For example to allow the <em class="replaceable"><code>192.168.1.0/24</code></em>
  861. network to use your recursive name server, at the
  862. <span class="command"><strong>bindctl</strong></span> prompt run:
  863. </p><pre class="screen">
  864. &gt; <strong class="userinput"><code>config add Resolver/query_acl</code></strong>
  865. &gt; <strong class="userinput"><code>config set Resolver/query_acl[<em class="replaceable"><code>2</code></em>]/action "ACCEPT"</code></strong>
  866. &gt; <strong class="userinput"><code>config set Resolver/query_acl[<em class="replaceable"><code>2</code></em>]/from "<em class="replaceable"><code>192.168.1.0/24</code></em>"</code></strong>
  867. &gt; <strong class="userinput"><code>config commit</code></strong>
  868. </pre><p>(Replace the <span class="quote">&#8220;<span class="quote"><em class="replaceable"><code>2</code></em></span>&#8221;</span>
  869. as needed; run <span class="quote">&#8220;<span class="quote"><strong class="userinput"><code>config show
  870. Resolver/query_acl</code></strong></span>&#8221;</span> if needed.)</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This prototype access control configuration
  871. syntax may be changed.</p></div></div><div class="section" title="11.2. Forwarding"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229438900"></a>11.2. Forwarding</h2></div></div></div><p>
  872. To enable forwarding, the upstream address and port must be
  873. configured to forward queries to, such as:
  874. </p><pre class="screen">
  875. &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>
  876. &gt; <strong class="userinput"><code>config commit</code></strong>
  877. </pre><p>
  878. (Replace <em class="replaceable"><code>192.168.1.1</code></em> to point to your
  879. full resolver.)
  880. </p><p>
  881. Normal iterative name service can be re-enabled by clearing the
  882. forwarding address(es); for example:
  883. </p><pre class="screen">
  884. &gt; <strong class="userinput"><code>config set Resolver/forward_addresses []</code></strong>
  885. &gt; <strong class="userinput"><code>config commit</code></strong>
  886. </pre><p>
  887. </p></div></div><div class="chapter" title="Chapter 12. DHCPv4 Server"><div class="titlepage"><div><div><h2 class="title"><a name="dhcp4"></a>Chapter 12. DHCPv4 Server</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#dhcp4-usage">12.1. DHCPv4 Server Usage</a></span></dt><dt><span class="section"><a href="#dhcp4-config">12.2. DHCPv4 Server Configuration</a></span></dt><dt><span class="section"><a href="#dhcp4-std">12.3. Supported standards</a></span></dt><dt><span class="section"><a href="#dhcp4-limit">12.4. DHCPv4 Server Limitations</a></span></dt></dl></div><p>Dynamic Host Configuration Protocol for IPv4 (DHCP or
  888. DHCPv4) and Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
  889. are protocols that allow one node (server) to provision
  890. configuration parameters to many hosts and devices (clients). To
  891. ease deployment in larger networks, additional nodes (relays) may
  892. be deployed that facilitate communication between servers and
  893. clients. Even though principles of both DHCPv4 and DHCPv6 are
  894. somewhat similar, these are two radically different
  895. protocols. BIND10 offers server implementations for both DHCPv4
  896. and DHCPv6. This chapter is about DHCP for IPv4. For a description
  897. of the DHCPv6 server, see <a class="xref" href="#dhcp6" title="Chapter 13. DHCPv6 Server">Chapter 13, <i>DHCPv6 Server</i></a>.</p><p>The DHCPv4 server component is currently under intense
  898. development. You may want to check out <a class="ulink" href="http://bind10.isc.org/wiki/Kea" target="_top">BIND10 DHCP (Kea) wiki</a>
  899. and recent posts on <a class="ulink" href="https://lists.isc.org/mailman/listinfo/bind10-dev" target="_top">BIND10
  900. developers mailing list</a>.</p><p>The DHCPv4 and DHCPv6 components in BIND10 architecture are
  901. internally code named <span class="quote">&#8220;<span class="quote">Kea</span>&#8221;</span>.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  902. As of December 2011, both DHCPv4 and DHCPv6 components are
  903. skeleton servers. That means that while they are capable of
  904. performing DHCP configuration, they are not fully functional
  905. yet. In particular, neither has functional lease
  906. databases. This means that they will assign the same, fixed,
  907. hardcoded addresses to any client that will ask. See <a class="xref" href="#dhcp4-limit" title="12.4. DHCPv4 Server Limitations">Section 12.4, &#8220;DHCPv4 Server Limitations&#8221;</a> and <a class="xref" href="#dhcp6-limit" title="13.4. DHCPv6 Server Limitations">Section 13.4, &#8220;DHCPv6 Server Limitations&#8221;</a> for
  908. detailed description.
  909. </p></div><div class="section" title="12.1. DHCPv4 Server Usage"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp4-usage"></a>12.1. DHCPv4 Server Usage</h2></div></div></div><p>BIND10 provides the DHCPv4 server component since December
  910. 2011. It is a skeleton server and can be described as an early
  911. prototype that is not fully functional yet. It is mature enough
  912. to conduct first tests in lab environment, but it has
  913. significant limitations. See <a class="xref" href="#dhcp4-limit" title="12.4. DHCPv4 Server Limitations">Section 12.4, &#8220;DHCPv4 Server Limitations&#8221;</a> for
  914. details.
  915. </p><p>
  916. The DHCPv4 server is implemented as <span class="command"><strong>b10-dhcp4</strong></span>
  917. daemon. As it is not configurable yet, it is fully autonomous,
  918. that is it does not interact with <span class="command"><strong>b10-cfgmgr</strong></span>.
  919. To start DHCPv4 server, simply input:
  920. </p><pre class="screen">
  921. #<strong class="userinput"><code>cd src/bin/dhcp4</code></strong>
  922. #<strong class="userinput"><code>./b10-dhcp4</code></strong>
  923. </pre><p>
  924. Depending on your installation, <span class="command"><strong>b10-dhcp4</strong></span>
  925. binary may reside in src/bin/dhcp4 in your source code
  926. directory, in /usr/local/bin/b10-dhcp4 or other directory
  927. you specified during compilation.
  928. At start, the server will detect available network interfaces
  929. and will attempt to open UDP sockets on all interfaces that
  930. are up, running, are not loopback, and have IPv4 address
  931. assigned.
  932. The server will then listen to incoming traffic. Currently
  933. supported client messages are DISCOVER and REQUEST. The server
  934. will respond to them with OFFER and ACK, respectively.
  935. Since the DHCPv4 server opens privileged ports, it requires root
  936. access. Make sure you run this daemon as root.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  937. Integration with <span class="command"><strong>bind10</strong></span> is
  938. planned. Ultimately, <span class="command"><strong>b10-dhcp4</strong></span> will not
  939. be started directly, but rather via
  940. <span class="command"><strong>bind10</strong></span>. Please be aware of this planned
  941. change.
  942. </p></div></div><div class="section" title="12.2. DHCPv4 Server Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp4-config"></a>12.2. DHCPv4 Server Configuration</h2></div></div></div><p>
  943. The DHCPv4 server does not have a lease database implemented yet
  944. nor any support for configuration, so every time the same set
  945. of configuration options (including the same fixed address)
  946. will be assigned every time.
  947. </p><p>
  948. At this stage of development, the only way to alter the server
  949. configuration is to tweak its source code. To do so, please
  950. edit src/bin/dhcp4/dhcp4_srv.cc file and modify following
  951. parameters and recompile:
  952. </p><pre class="screen">
  953. const std::string HARDCODED_LEASE = "192.0.2.222"; // assigned lease
  954. const std::string HARDCODED_NETMASK = "255.255.255.0";
  955. const uint32_t HARDCODED_LEASE_TIME = 60; // in seconds
  956. const std::string HARDCODED_GATEWAY = "192.0.2.1";
  957. const std::string HARDCODED_DNS_SERVER = "192.0.2.2";
  958. const std::string HARDCODED_DOMAIN_NAME = "isc.example.com";
  959. const std::string HARDCODED_SERVER_ID = "192.0.2.1";</pre><p>
  960. Lease database and configuration support is planned for 2012.
  961. </p></div><div class="section" title="12.3. Supported standards"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp4-std"></a>12.3. Supported standards</h2></div></div></div><p>The following standards and draft standards are currently
  962. supported:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">RFC2131: Supported messages are DISCOVER, OFFER,
  963. REQUEST, and ACK.</li><li class="listitem">RFC2132: Supported options are: PAD (0),
  964. END(255), Message Type(53), DHCP Server Identifier (54),
  965. Domain Name (15), DNS Servers (6), IP Address Lease Time
  966. (51), Subnet mask (1), and Routers (3).</li></ul></div></div><div class="section" title="12.4. DHCPv4 Server Limitations"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp4-limit"></a>12.4. DHCPv4 Server Limitations</h2></div></div></div><p>These are the current limitations of the DHCPv4 server
  967. software. Most of them are reflections of the early stage of
  968. development and should be treated as <span class="quote">&#8220;<span class="quote">not implemented
  969. yet</span>&#8221;</span>, rather than actual limitations.</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">During initial IPv4 node configuration, the
  970. server is expected to send packets to a node that does not
  971. have IPv4 address assigned yet. The server requires
  972. certain tricks (or hacks) to transmit such packets. This
  973. is not implemented yet, therefore DHCPv4 server supports
  974. relayed traffic only (that is, normal point to point
  975. communication).</li><li class="listitem"><span class="command"><strong>b10-dhcp4</strong></span> provides a single,
  976. fixed, hardcoded lease to any client that asks. There is
  977. no lease manager implemented. If two clients request
  978. addresses, they will both get the same fixed
  979. address.</li><li class="listitem"><span class="command"><strong>b10-dhcp4</strong></span> does not support any
  980. configuration mechanisms yet. The whole configuration is
  981. currently hardcoded. The only way to tweak configuration
  982. is to directly modify source code. See see <a class="xref" href="#dhcp4-config" title="12.2. DHCPv4 Server Configuration">Section 12.2, &#8220;DHCPv4 Server Configuration&#8221;</a> for details.</li><li class="listitem">Upon start, the server will open sockets on all
  983. interfaces that are not loopback, are up and running and
  984. have IPv4 address. Support for multiple interfaces is not
  985. coded in reception routines yet, so if you are running
  986. this code on a machine that has many interfaces and
  987. <span class="command"><strong>b10-dhcp4</strong></span> happens to listen on wrong
  988. interface, the easiest way to work around this problem is
  989. to turn down other interfaces. This limitation will be
  990. fixed shortly.</li><li class="listitem">PRL (Parameter Request List, a list of options
  991. requested by a client) is currently ignored and server
  992. assigns DNS SERVER and DOMAIN NAME options.</li><li class="listitem"><span class="command"><strong>b10-dhcp4</strong></span> does not support
  993. BOOTP. That is a design choice. This limitation is
  994. permanent. If you have legacy nodes that can't use DHCP and
  995. require BOOTP support, please use latest version of ISC DHCP
  996. <a class="ulink" href="http://www.isc.org/software/dhcp" target="_top">http://www.isc.org/software/dhcp</a>.</li><li class="listitem">Interface detection is currently working on Linux
  997. only. See <a class="xref" href="#iface-detect" title="14.1. Interface detection">Section 14.1, &#8220;Interface detection&#8221;</a> for details.</li><li class="listitem"><span class="command"><strong>b10-dhcp4</strong></span> does not verify that
  998. assigned address is unused. According to RFC2131, the
  999. allocating server should verify that address is no used by
  1000. sending ICMP echo request.</li><li class="listitem">Address renewal (RENEW), rebinding (REBIND),
  1001. confirmation (CONFIRM), duplication report (DECLINE) and
  1002. release (RELEASE) are not supported yet.</li><li class="listitem">DNS Update is not supported yet.</li><li class="listitem">-v (verbose) command line option is currently
  1003. the default, and cannot be disabled.</li></ul></div></div></div><div class="chapter" title="Chapter 13. DHCPv6 Server"><div class="titlepage"><div><div><h2 class="title"><a name="dhcp6"></a>Chapter 13. DHCPv6 Server</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#dhcp6-usage">13.1. DHCPv6 Server Usage</a></span></dt><dt><span class="section"><a href="#dhcp6-config">13.2. DHCPv6 Server Configuration</a></span></dt><dt><span class="section"><a href="#dhcp6-std">13.3. Supported DHCPv6 Standards</a></span></dt><dt><span class="section"><a href="#dhcp6-limit">13.4. DHCPv6 Server Limitations</a></span></dt></dl></div><p>Dynamic Host Configuration Protocol for IPv6 (DHCPv6) is
  1004. specified in RFC3315. BIND10 provides DHCPv6 server implementation
  1005. that is described in this chapter. For a description of the DHCPv4
  1006. server implementation, see <a class="xref" href="#dhcp4" title="Chapter 12. DHCPv4 Server">Chapter 12, <i>DHCPv4 Server</i></a>.
  1007. </p><p>The DHCPv6 server component is currently under intense
  1008. development. You may want to check out <a class="ulink" href="http://bind10.isc.org/wiki/Kea" target="_top">BIND10 DHCP (Kea) wiki</a>
  1009. and recent posts on <a class="ulink" href="https://lists.isc.org/mailman/listinfo/bind10-dev" target="_top">BIND10
  1010. developers mailing list</a>.</p><p>The DHCPv4 and DHCPv6 components in BIND10 architecture are
  1011. internally code named <span class="quote">&#8220;<span class="quote">Kea</span>&#8221;</span>.</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  1012. As of December 2011, both DHCPv4 and DHCPv6 components are
  1013. skeleton servers. That means that while they are capable of
  1014. performing DHCP configuration, they are not fully functional
  1015. yet. In particular, neither has functional lease
  1016. databases. This means that they will assign the same, fixed,
  1017. hardcoded addresses to any client that will ask. See <a class="xref" href="#dhcp4-limit" title="12.4. DHCPv4 Server Limitations">Section 12.4, &#8220;DHCPv4 Server Limitations&#8221;</a> and <a class="xref" href="#dhcp6-limit" title="13.4. DHCPv6 Server Limitations">Section 13.4, &#8220;DHCPv6 Server Limitations&#8221;</a> for
  1018. detailed description.
  1019. </p></div><div class="section" title="13.1. DHCPv6 Server Usage"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp6-usage"></a>13.1. DHCPv6 Server Usage</h2></div></div></div><p>
  1020. BIND10 provides the DHCPv6 server component since September
  1021. 2011. It is a skeleton server and can be described as an early
  1022. prototype that is not fully functional yet. It is mature
  1023. enough to conduct first tests in lab environment, but it has
  1024. significant limitations. See <a class="xref" href="#dhcp6-limit" title="13.4. DHCPv6 Server Limitations">Section 13.4, &#8220;DHCPv6 Server Limitations&#8221;</a> for
  1025. details.
  1026. </p><p>
  1027. The DHCPv6 server is implemented as <span class="command"><strong>b10-dhcp6</strong></span>
  1028. daemon. As it is not configurable yet, it is fully autonomous,
  1029. that is it does not interact with <span class="command"><strong>b10-cfgmgr</strong></span>.
  1030. To start DHCPv6 server, simply input:
  1031. </p><pre class="screen">
  1032. #<strong class="userinput"><code>cd src/bin/dhcp6</code></strong>
  1033. #<strong class="userinput"><code>./b10-dhcp6</code></strong>
  1034. </pre><p>
  1035. Depending on your installation, <span class="command"><strong>b10-dhcp6</strong></span>
  1036. binary may reside in src/bin/dhcp6 in your source code
  1037. directory, in /usr/local/bin/b10-dhcp6 or other directory
  1038. you specified during compilation.
  1039. At start, server will detect available network interfaces
  1040. and will attempt to open UDP sockets on all interfaces that
  1041. are up, running, are not loopback, are multicast-capable, and
  1042. have IPv6 address assigned.
  1043. The server will then listen to incoming traffic. Currently
  1044. supported client messages are SOLICIT and REQUEST. The server
  1045. will respond to them with ADVERTISE and REPLY, respectively.
  1046. Since the DHCPv6 server opens privileged ports, it requires root
  1047. access. Make sure you run this daemon as root.
  1048. </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
  1049. Integration with <span class="command"><strong>bind10</strong></span> is
  1050. planned. Ultimately, <span class="command"><strong>b10-dhcp6</strong></span> will not
  1051. be started directly, but rather via
  1052. <span class="command"><strong>bind10</strong></span>. Please be aware of this planned
  1053. change.
  1054. </p></div></div><div class="section" title="13.2. DHCPv6 Server Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp6-config"></a>13.2. DHCPv6 Server Configuration</h2></div></div></div><p>
  1055. The DHCPv6 server does not have lease database implemented yet
  1056. or any support for configuration, so every time the same set
  1057. of configuration options (including the same fixed address)
  1058. will be assigned every time.
  1059. </p><p>
  1060. At this stage of development, the only way to alter server
  1061. configuration is to tweak its source code. To do so, please
  1062. edit src/bin/dhcp6/dhcp6_srv.cc file and modify following
  1063. parameters and recompile:
  1064. </p><pre class="screen">
  1065. const std::string HARDCODED_LEASE = "2001:db8:1::1234:abcd";
  1066. const uint32_t HARDCODED_T1 = 1500; // in seconds
  1067. const uint32_t HARDCODED_T2 = 2600; // in seconds
  1068. const uint32_t HARDCODED_PREFERRED_LIFETIME = 3600; // in seconds
  1069. const uint32_t HARDCODED_VALID_LIFETIME = 7200; // in seconds
  1070. const std::string HARDCODED_DNS_SERVER = "2001:db8:1::1";</pre><p>
  1071. Lease database and configuration support is planned for 2012.
  1072. </p></div><div class="section" title="13.3. Supported DHCPv6 Standards"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp6-std"></a>13.3. Supported DHCPv6 Standards</h2></div></div></div><p>The following standards and draft standards are currently
  1073. supported:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">RFC3315: Supported messages are SOLICIT,
  1074. ADVERTISE, REQUEST, and REPLY. Supported options are
  1075. SERVER_ID, CLIENT_ID, IA_NA, and IAADDRESS.</li><li class="listitem">RFC3646: Supported option is DNS_SERVERS.</li></ul></div></div><div class="section" title="13.4. DHCPv6 Server Limitations"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dhcp6-limit"></a>13.4. DHCPv6 Server Limitations</h2></div></div></div><p> These are the current limitations of the DHCPv6 server
  1076. software. Most of them are reflections of the early stage of
  1077. development and should be treated as <span class="quote">&#8220;<span class="quote">not implemented
  1078. yet</span>&#8221;</span>, rather than actual limitations.</p><p>
  1079. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">Relayed traffic is not supported.</li><li class="listitem"><span class="command"><strong>b10-dhcp6</strong></span> provides a single,
  1080. fixed, hardcoded lease to any client that asks. There is no
  1081. lease manager implemented. If two clients request addresses,
  1082. they will both get the same fixed address.</li><li class="listitem"><span class="command"><strong>b10-dhcp6</strong></span> does not support any
  1083. configuration mechanisms yet. The whole configuration is
  1084. currently hardcoded. The only way to tweak configuration
  1085. is to directly modify source code. See see <a class="xref" href="#dhcp6-config" title="13.2. DHCPv6 Server Configuration">Section 13.2, &#8220;DHCPv6 Server Configuration&#8221;</a> for details.</li><li class="listitem">Upon start, the server will open sockets on all
  1086. interfaces that are not loopback, are up, running and are
  1087. multicast capable and have IPv6 address. Support for
  1088. multiple interfaces is not coded in reception routines yet,
  1089. so if you are running this code on a machine that has many
  1090. interfaces and <span class="command"><strong>b10-dhcp6</strong></span> happens to
  1091. listen on wrong interface, the easiest way to work around
  1092. this problem is to turn down other interfaces. This
  1093. limitation will be fixed shortly.</li><li class="listitem">ORO (Option Request Option, a list of options
  1094. requested by a client) is currently ignored and server
  1095. assigns DNS SERVER option.</li><li class="listitem">Temporary addresses are not supported yet.</li><li class="listitem">Prefix delegation is not supported yet.</li><li class="listitem">Address renewal (RENEW), rebinding (REBIND),
  1096. confirmation (CONFIRM), duplication report (DECLINE) and
  1097. release (RELEASE) are not supported yet.</li><li class="listitem">DNS Update is not supported yet.</li><li class="listitem">Interface detection is currently working on Linux
  1098. only. See <a class="xref" href="#iface-detect" title="14.1. Interface detection">Section 14.1, &#8220;Interface detection&#8221;</a> for details.</li><li class="listitem">-v (verbose) command line option is currently the
  1099. default, and cannot be disabled.</li></ul></div><p>
  1100. </p></div></div><div class="chapter" title="Chapter 14. libdhcp++ library"><div class="titlepage"><div><div><h2 class="title"><a name="libdhcp"></a>Chapter 14. libdhcp++ library</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#iface-detect">14.1. Interface detection</a></span></dt><dt><span class="section"><a href="#packet-handling">14.2. DHCPv4/DHCPv6 packet handling</a></span></dt></dl></div><p>libdhcp++ is a common library written in C++ that handles
  1101. many DHCP-related tasks, like DHCPv4 and DHCPv6 packets parsing,
  1102. manipulation and assembly, option parsing, manipulation and
  1103. assembly, network interface detection and socket operations, like
  1104. socket creations, data transmission and reception and socket
  1105. closing.
  1106. </p><p>
  1107. While this library is currently used by
  1108. <span class="command"><strong>b10-dhcp4</strong></span> and <span class="command"><strong>b10-dhcp6</strong></span>
  1109. only, it is designed to be portable, universal library useful for
  1110. any kind of DHCP-related software.
  1111. </p><div class="section" title="14.1. Interface detection"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="iface-detect"></a>14.1. Interface detection</h2></div></div></div><p>Both DHCPv4 and DHCPv6 components share network
  1112. interface detection routines. Interface detection is
  1113. currently only supported on Linux systems.</p><p>For non-Linux systems, there is currently stub
  1114. implementation provided. As DHCP servers need to know available
  1115. addresses, there is a simple mechanism implemented to provide
  1116. that information. User is expected to create interfaces.txt
  1117. file. Format of this file is simple. It contains list of
  1118. interfaces along with available address on each interface. This
  1119. mechanism is temporary and is going to be removed as soon as
  1120. interface detection becomes available on non-Linux
  1121. systems. Here is an example of the interfaces.txt file:
  1122. </p><pre class="screen">
  1123. # For DHCPv6, please specify link-local address (starts with fe80::)
  1124. # If in doubt, check output of 'ifconfig -a' command.
  1125. eth0 fe80::21e:8cff:fe9b:7349
  1126. # For DHCPv4, please use following format:
  1127. #eth0 192.0.2.5</pre><p>
  1128. </p></div><div class="section" title="14.2. DHCPv4/DHCPv6 packet handling"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="packet-handling"></a>14.2. DHCPv4/DHCPv6 packet handling</h2></div></div></div><p>TODO: Describe packet handling here, with pointers to wiki</p></div></div><div class="chapter" title="Chapter 15. Statistics"><div class="titlepage"><div><div><h2 class="title"><a name="statistics"></a>Chapter 15. Statistics</h2></div></div></div><p>
  1129. The <span class="command"><strong>b10-stats</strong></span> process is started by
  1130. <span class="command"><strong>bind10</strong></span>.
  1131. It periodically collects statistics data from various modules
  1132. and aggregates it.
  1133. </p><p>
  1134. This stats daemon provides commands to identify if it is
  1135. running, show specified or all statistics data, show specified
  1136. or all statistics data schema, and set specified statistics
  1137. data.
  1138. For example, using <span class="command"><strong>bindctl</strong></span>:
  1139. </p><pre class="screen">
  1140. &gt; <strong class="userinput"><code>Stats show</code></strong>
  1141. {
  1142. "Auth": {
  1143. "opcode.iquery": 0,
  1144. "opcode.notify": 10,
  1145. "opcode.query": 869617,
  1146. ...
  1147. "queries.tcp": 1749,
  1148. "queries.udp": 867868
  1149. },
  1150. "Boss": {
  1151. "boot_time": "2011-01-20T16:59:03Z"
  1152. },
  1153. "Stats": {
  1154. "boot_time": "2011-01-20T16:59:05Z",
  1155. "last_update_time": "2011-01-20T17:04:05Z",
  1156. "lname": "4d3869d9_a@jreed.example.net",
  1157. "report_time": "2011-01-20T17:04:06Z",
  1158. "timestamp": 1295543046.823504
  1159. }
  1160. }
  1161. </pre><p>
  1162. </p></div><div class="chapter" title="Chapter 16. Logging"><div class="titlepage"><div><div><h2 class="title"><a name="logging"></a>Chapter 16. Logging</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#id1168229440014">16.1. Logging configuration</a></span></dt><dd><dl><dt><span class="section"><a href="#id1168229440025">16.1.1. Loggers</a></span></dt><dt><span class="section"><a href="#id1168229440268">16.1.2. Output Options</a></span></dt><dt><span class="section"><a href="#id1168229440509">16.1.3. Example session</a></span></dt></dl></dd><dt><span class="section"><a href="#id1168229440720">16.2. Logging Message Format</a></span></dt></dl></div><div class="section" title="16.1. Logging configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229440014"></a>16.1. Logging configuration</h2></div></div></div><p>
  1163. The logging system in BIND 10 is configured through the
  1164. Logging module. All BIND 10 modules will look at the
  1165. configuration in Logging to see what should be logged and
  1166. to where.
  1167. </p><div class="section" title="16.1.1. Loggers"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229440025"></a>16.1.1. Loggers</h3></div></div></div><p>
  1168. Within BIND 10, a message is logged through a component
  1169. called a "logger". Different parts of BIND 10 log messages
  1170. through different loggers, and each logger can be configured
  1171. independently of one another.
  1172. </p><p>
  1173. In the Logging module, you can specify the configuration
  1174. for zero or more loggers; any that are not specified will
  1175. take appropriate default values..
  1176. </p><p>
  1177. The three most important elements of a logger configuration
  1178. are the <code class="option">name</code> (the component that is
  1179. generating the messages), the <code class="option">severity</code>
  1180. (what to log), and the <code class="option">output_options</code>
  1181. (where to log).
  1182. </p><div class="section" title="16.1.1.1. name (string)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440051"></a>16.1.1.1. name (string)</h4></div></div></div><p>
  1183. Each logger in the system has a name, the name being that
  1184. of the component using it to log messages. For instance,
  1185. if you want to configure logging for the resolver module,
  1186. you add an entry for a logger named <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>. This
  1187. configuration will then be used by the loggers in the
  1188. Resolver module, and all the libraries used by it.
  1189. </p><p>
  1190. If you want to specify logging for one specific library
  1191. within the module, you set the name to
  1192. <em class="replaceable"><code>module.library</code></em>. For example, the
  1193. logger used by the nameserver address store component
  1194. has the full name of <span class="quote">&#8220;<span class="quote">Resolver.nsas</span>&#8221;</span>. If
  1195. there is no entry in Logging for a particular library,
  1196. it will use the configuration given for the module.
  1197. </p><p>
  1198. To illustrate this, suppose you want the cache library
  1199. to log messages of severity DEBUG, and the rest of the
  1200. resolver code to log messages of severity INFO. To achieve
  1201. this you specify two loggers, one with the name
  1202. <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span> and severity INFO, and one with
  1203. the name <span class="quote">&#8220;<span class="quote">Resolver.cache</span>&#8221;</span> with severity
  1204. DEBUG. As there are no entries for other libraries (e.g.
  1205. the nsas), they will use the configuration for the module
  1206. (<span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>), so giving the desired behavior.
  1207. </p><p>
  1208. One special case is that of a module name of <span class="quote">&#8220;<span class="quote">*</span>&#8221;</span>
  1209. (asterisks), which is interpreted as <span class="emphasis"><em>any</em></span>
  1210. module. You can set global logging options by using this,
  1211. including setting the logging configuration for a library
  1212. that is used by multiple modules (e.g. <span class="quote">&#8220;<span class="quote">*.config</span>&#8221;</span>
  1213. specifies the configuration library code in whatever
  1214. module is using it).
  1215. </p><p>
  1216. If there are multiple logger specifications in the
  1217. configuration that might match a particular logger, the
  1218. specification with the more specific logger name takes
  1219. precedence. For example, if there are entries for for
  1220. both <span class="quote">&#8220;<span class="quote">*</span>&#8221;</span> and <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>, the
  1221. resolver module &#8212; and all libraries it uses &#8212;
  1222. will log messages according to the configuration in the
  1223. second entry (<span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>). All other modules
  1224. will use the configuration of the first entry
  1225. (<span class="quote">&#8220;<span class="quote">*</span>&#8221;</span>). If there was also a configuration
  1226. entry for <span class="quote">&#8220;<span class="quote">Resolver.cache</span>&#8221;</span>, the cache library
  1227. within the resolver would use that in preference to the
  1228. entry for <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>.
  1229. </p><p>
  1230. One final note about the naming. When specifying the
  1231. module name within a logger, use the name of the module
  1232. as specified in <span class="command"><strong>bindctl</strong></span>, e.g.
  1233. <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span> for the resolver module,
  1234. <span class="quote">&#8220;<span class="quote">Xfrout</span>&#8221;</span> for the xfrout module, etc. When
  1235. the message is logged, the message will include the name
  1236. of the logger generating the message, but with the module
  1237. name replaced by the name of the process implementing
  1238. the module (so for example, a message generated by the
  1239. <span class="quote">&#8220;<span class="quote">Auth.cache</span>&#8221;</span> logger will appear in the output
  1240. with a logger name of <span class="quote">&#8220;<span class="quote">b10-auth.cache</span>&#8221;</span>).
  1241. </p></div><div class="section" title="16.1.1.2. severity (string)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440150"></a>16.1.1.2. severity (string)</h4></div></div></div><p>
  1242. This specifies the category of messages logged.
  1243. Each message is logged with an associated severity which
  1244. may be one of the following (in descending order of
  1245. severity):
  1246. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> FATAL </li><li class="listitem"> ERROR </li><li class="listitem"> WARN </li><li class="listitem"> INFO </li><li class="listitem"> DEBUG </li></ul></div><p>
  1247. When the severity of a logger is set to one of these
  1248. values, it will only log messages of that severity, and
  1249. the severities above it. The severity may also be set to
  1250. NONE, in which case all messages from that logger are
  1251. inhibited.
  1252. </p></div><div class="section" title="16.1.1.3. output_options (list)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440201"></a>16.1.1.3. output_options (list)</h4></div></div></div><p>
  1253. Each logger can have zero or more
  1254. <code class="option">output_options</code>. These specify where log
  1255. messages are sent to. These are explained in detail below.
  1256. </p><p>
  1257. The other options for a logger are:
  1258. </p></div><div class="section" title="16.1.1.4. debuglevel (integer)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440217"></a>16.1.1.4. debuglevel (integer)</h4></div></div></div><p>
  1259. When a logger's severity is set to DEBUG, this value
  1260. specifies what debug messages should be printed. It ranges
  1261. from 0 (least verbose) to 99 (most verbose).
  1262. </p><p>
  1263. If severity for the logger is not DEBUG, this value is ignored.
  1264. </p></div><div class="section" title="16.1.1.5. additive (true or false)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440232"></a>16.1.1.5. additive (true or false)</h4></div></div></div><p>
  1265. If this is true, the <code class="option">output_options</code> from
  1266. the parent will be used. For example, if there are two
  1267. loggers configured; <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span> and
  1268. <span class="quote">&#8220;<span class="quote">Resolver.cache</span>&#8221;</span>, and <code class="option">additive</code>
  1269. is true in the second, it will write the log messages
  1270. not only to the destinations specified for
  1271. <span class="quote">&#8220;<span class="quote">Resolver.cache</span>&#8221;</span>, but also to the destinations
  1272. as specified in the <code class="option">output_options</code> in
  1273. the logger named <span class="quote">&#8220;<span class="quote">Resolver</span>&#8221;</span>.
  1274. </p></div></div><div class="section" title="16.1.2. Output Options"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229440268"></a>16.1.2. Output Options</h3></div></div></div><p>
  1275. The main settings for an output option are the
  1276. <code class="option">destination</code> and a value called
  1277. <code class="option">output</code>, the meaning of which depends on
  1278. the destination that is set.
  1279. </p><div class="section" title="16.1.2.1. destination (string)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440283"></a>16.1.2.1. destination (string)</h4></div></div></div><p>
  1280. The destination is the type of output. It can be one of:
  1281. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> console </li><li class="listitem"> file </li><li class="listitem"> syslog </li></ul></div></div><div class="section" title="16.1.2.2. output (string)"><div class="titlepage"><div><div><h4 class="title"><a name="id1168229440385"></a>16.1.2.2. output (string)</h4></div></div></div><p>
  1282. Depending on what is set as the output destination, this
  1283. value is interpreted as follows:
  1284. </p><div class="variablelist"><dl><dt><span class="term"><code class="option">destination</code> is <span class="quote">&#8220;<span class="quote">console</span>&#8221;</span></span></dt><dd>
  1285. The value of output must be one of <span class="quote">&#8220;<span class="quote">stdout</span>&#8221;</span>
  1286. (messages printed to standard output) or
  1287. <span class="quote">&#8220;<span class="quote">stderr</span>&#8221;</span> (messages printed to standard
  1288. error).
  1289. </dd><dt><span class="term"><code class="option">destination</code> is <span class="quote">&#8220;<span class="quote">file</span>&#8221;</span></span></dt><dd>
  1290. The value of output is interpreted as a file name;
  1291. log messages will be appended to this file.
  1292. </dd><dt><span class="term"><code class="option">destination</code> is <span class="quote">&#8220;<span class="quote">syslog</span>&#8221;</span></span></dt><dd>
  1293. The value of output is interpreted as the
  1294. <span class="command"><strong>syslog</strong></span> facility (e.g.
  1295. <span class="emphasis"><em>local0</em></span>) that should be used
  1296. for log messages.
  1297. </dd></dl></div><p>
  1298. The other options for <code class="option">output_options</code> are:
  1299. </p><div class="section" title="16.1.2.2.1. flush (true of false)"><div class="titlepage"><div><div><h5 class="title"><a name="id1168229440469"></a>16.1.2.2.1. flush (true of false)</h5></div></div></div><p>
  1300. Flush buffers after each log message. Doing this will
  1301. reduce performance but will ensure that if the program
  1302. terminates abnormally, all messages up to the point of
  1303. termination are output.
  1304. </p></div><div class="section" title="16.1.2.2.2. maxsize (integer)"><div class="titlepage"><div><div><h5 class="title"><a name="id1168229440478"></a>16.1.2.2.2. maxsize (integer)</h5></div></div></div><p>
  1305. Only relevant when destination is file, this is maximum
  1306. file size of output files in bytes. When the maximum
  1307. size is reached, the file is renamed and a new file opened.
  1308. (For example, a ".1" is appended to the name &#8212;
  1309. if a ".1" file exists, it is renamed ".2",
  1310. etc.)
  1311. </p><p>
  1312. If this is 0, no maximum file size is used.
  1313. </p></div><div class="section" title="16.1.2.2.3. maxver (integer)"><div class="titlepage"><div><div><h5 class="title"><a name="id1168229440491"></a>16.1.2.2.3. maxver (integer)</h5></div></div></div><p>
  1314. Maximum number of old log files to keep around when
  1315. rolling the output file. Only relevant when
  1316. <code class="option">destination</code> is <span class="quote">&#8220;<span class="quote">file</span>&#8221;</span>.
  1317. </p></div></div></div><div class="section" title="16.1.3. Example session"><div class="titlepage"><div><div><h3 class="title"><a name="id1168229440509"></a>16.1.3. Example session</h3></div></div></div><p>
  1318. In this example we want to set the global logging to
  1319. write to the file <code class="filename">/var/log/my_bind10.log</code>,
  1320. at severity WARN. We want the authoritative server to
  1321. log at DEBUG with debuglevel 40, to a different file
  1322. (<code class="filename">/tmp/debug_messages</code>).
  1323. </p><p>
  1324. Start <span class="command"><strong>bindctl</strong></span>.
  1325. </p><p>
  1326. </p><pre class="screen">["login success "]
  1327. &gt; <strong class="userinput"><code>config show Logging</code></strong>
  1328. Logging/loggers [] list
  1329. </pre><p>
  1330. </p><p>
  1331. By default, no specific loggers are configured, in which
  1332. case the severity defaults to INFO and the output is
  1333. written to stderr.
  1334. </p><p>
  1335. Let's first add a default logger:
  1336. </p><p>
  1337. </p><pre class="screen"><strong class="userinput"><code>&gt; config add Logging/loggers</code></strong>
  1338. &gt; <strong class="userinput"><code>config show Logging</code></strong>
  1339. Logging/loggers/ list (modified)
  1340. </pre><p>
  1341. </p><p>
  1342. The loggers value line changed to indicate that it is no
  1343. longer an empty list:
  1344. </p><p>
  1345. </p><pre class="screen">&gt; <strong class="userinput"><code>config show Logging/loggers</code></strong>
  1346. Logging/loggers[0]/name "" string (default)
  1347. Logging/loggers[0]/severity "INFO" string (default)
  1348. Logging/loggers[0]/debuglevel 0 integer (default)
  1349. Logging/loggers[0]/additive false boolean (default)
  1350. Logging/loggers[0]/output_options [] list (default)
  1351. </pre><p>
  1352. </p><p>
  1353. The name is mandatory, so we must set it. We will also
  1354. change the severity as well. Let's start with the global
  1355. logger.
  1356. </p><p>
  1357. </p><pre class="screen">&gt; <strong class="userinput"><code>config set Logging/loggers[0]/name *</code></strong>
  1358. &gt; <strong class="userinput"><code>config set Logging/loggers[0]/severity WARN</code></strong>
  1359. &gt; <strong class="userinput"><code>config show Logging/loggers</code></strong>
  1360. Logging/loggers[0]/name "*" string (modified)
  1361. Logging/loggers[0]/severity "WARN" string (modified)
  1362. Logging/loggers[0]/debuglevel 0 integer (default)
  1363. Logging/loggers[0]/additive false boolean (default)
  1364. Logging/loggers[0]/output_options [] list (default)
  1365. </pre><p>
  1366. </p><p>
  1367. Of course, we need to specify where we want the log
  1368. messages to go, so we add an entry for an output option.
  1369. </p><p>
  1370. </p><pre class="screen">&gt; <strong class="userinput"><code> config add Logging/loggers[0]/output_options</code></strong>
  1371. &gt; <strong class="userinput"><code> config show Logging/loggers[0]/output_options</code></strong>
  1372. Logging/loggers[0]/output_options[0]/destination "console" string (default)
  1373. Logging/loggers[0]/output_options[0]/output "stdout" string (default)
  1374. Logging/loggers[0]/output_options[0]/flush false boolean (default)
  1375. Logging/loggers[0]/output_options[0]/maxsize 0 integer (default)
  1376. Logging/loggers[0]/output_options[0]/maxver 0 integer (default)
  1377. </pre><p>
  1378. </p><p>
  1379. These aren't the values we are looking for.
  1380. </p><p>
  1381. </p><pre class="screen">&gt; <strong class="userinput"><code> config set Logging/loggers[0]/output_options[0]/destination file</code></strong>
  1382. &gt; <strong class="userinput"><code> config set Logging/loggers[0]/output_options[0]/output /var/log/bind10.log</code></strong>
  1383. &gt; <strong class="userinput"><code> config set Logging/loggers[0]/output_options[0]/maxsize 30000</code></strong>
  1384. &gt; <strong class="userinput"><code> config set Logging/loggers[0]/output_options[0]/maxver 8</code></strong>
  1385. </pre><p>
  1386. </p><p>
  1387. Which would make the entire configuration for this logger
  1388. look like:
  1389. </p><p>
  1390. </p><pre class="screen">&gt; <strong class="userinput"><code> config show all Logging/loggers</code></strong>
  1391. Logging/loggers[0]/name "*" string (modified)
  1392. Logging/loggers[0]/severity "WARN" string (modified)
  1393. Logging/loggers[0]/debuglevel 0 integer (default)
  1394. Logging/loggers[0]/additive false boolean (default)
  1395. Logging/loggers[0]/output_options[0]/destination "file" string (modified)
  1396. Logging/loggers[0]/output_options[0]/output "/var/log/bind10.log" string (modified)
  1397. Logging/loggers[0]/output_options[0]/flush false boolean (default)
  1398. Logging/loggers[0]/output_options[0]/maxsize 30000 integer (modified)
  1399. Logging/loggers[0]/output_options[0]/maxver 8 integer (modified)
  1400. </pre><p>
  1401. </p><p>
  1402. That looks OK, so let's commit it before we add the
  1403. configuration for the authoritative server's logger.
  1404. </p><p>
  1405. </p><pre class="screen">&gt; <strong class="userinput"><code> config commit</code></strong></pre><p>
  1406. </p><p>
  1407. Now that we have set it, and checked each value along
  1408. the way, adding a second entry is quite similar.
  1409. </p><p>
  1410. </p><pre class="screen">&gt; <strong class="userinput"><code> config add Logging/loggers</code></strong>
  1411. &gt; <strong class="userinput"><code> config set Logging/loggers[1]/name Auth</code></strong>
  1412. &gt; <strong class="userinput"><code> config set Logging/loggers[1]/severity DEBUG</code></strong>
  1413. &gt; <strong class="userinput"><code> config set Logging/loggers[1]/debuglevel 40</code></strong>
  1414. &gt; <strong class="userinput"><code> config add Logging/loggers[1]/output_options</code></strong>
  1415. &gt; <strong class="userinput"><code> config set Logging/loggers[1]/output_options[0]/destination file</code></strong>
  1416. &gt; <strong class="userinput"><code> config set Logging/loggers[1]/output_options[0]/output /tmp/auth_debug.log</code></strong>
  1417. &gt; <strong class="userinput"><code> config commit</code></strong>
  1418. </pre><p>
  1419. </p><p>
  1420. And that's it. Once we have found whatever it was we
  1421. needed the debug messages for, we can simply remove the
  1422. second logger to let the authoritative server use the
  1423. same settings as the rest.
  1424. </p><p>
  1425. </p><pre class="screen">&gt; <strong class="userinput"><code> config remove Logging/loggers[1]</code></strong>
  1426. &gt; <strong class="userinput"><code> config commit</code></strong>
  1427. </pre><p>
  1428. </p><p>
  1429. And every module will now be using the values from the
  1430. logger named <span class="quote">&#8220;<span class="quote">*</span>&#8221;</span>.
  1431. </p></div></div><div class="section" title="16.2. Logging Message Format"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id1168229440720"></a>16.2. Logging Message Format</h2></div></div></div><p>
  1432. Each message written by BIND 10 to the configured logging
  1433. destinations comprises a number of components that identify
  1434. the origin of the message and, if the message indicates
  1435. a problem, information about the problem that may be
  1436. useful in fixing it.
  1437. </p><p>
  1438. Consider the message below logged to a file:
  1439. </p><pre class="screen">2011-06-15 13:48:22.034 ERROR [b10-resolver.asiolink]
  1440. ASIODNS_OPENSOCK error 111 opening TCP socket to 127.0.0.1(53)</pre><p>
  1441. </p><p>
  1442. Note: the layout of messages written to the system logging
  1443. file (syslog) may be slightly different. This message has
  1444. been split across two lines here for display reasons; in the
  1445. logging file, it will appear on one line.)
  1446. </p><p>
  1447. The log message comprises a number of components:
  1448. </p><div class="variablelist"><dl><dt><span class="term">2011-06-15 13:48:22.034</span></dt><dd><p>
  1449. The date and time at which the message was generated.
  1450. </p></dd><dt><span class="term">ERROR</span></dt><dd><p>
  1451. The severity of the message.
  1452. </p></dd><dt><span class="term">[b10-resolver.asiolink]</span></dt><dd><p>
  1453. The source of the message. This comprises two components:
  1454. the BIND 10 process generating the message (in this
  1455. case, <span class="command"><strong>b10-resolver</strong></span>) and the module
  1456. within the program from which the message originated
  1457. (which in the example is the asynchronous I/O link
  1458. module, asiolink).
  1459. </p></dd><dt><span class="term">ASIODNS_OPENSOCK</span></dt><dd><p>
  1460. The message identification. Every message in BIND 10
  1461. has a unique identification, which can be used as an
  1462. index into the <a class="ulink" href="bind10-messages.html" target="_top"><em class="citetitle">BIND 10 Messages
  1463. Manual</em></a> (<a class="ulink" href="http://bind10.isc.org/docs/bind10-messages.html" target="_top">http://bind10.isc.org/docs/bind10-messages.html</a>) from which more information can be obtained.
  1464. </p></dd><dt><span class="term">error 111 opening TCP socket to 127.0.0.1(53)</span></dt><dd><p>
  1465. A brief description of the cause of the problem.
  1466. Within this text, information relating to the condition
  1467. that caused the message to be logged will be included.
  1468. In this example, error number 111 (an operating
  1469. system-specific error number) was encountered when
  1470. trying to open a TCP connection to port 53 on the
  1471. local system (address 127.0.0.1). The next step
  1472. would be to find out the reason for the failure by
  1473. consulting your system's documentation to identify
  1474. what error number 111 means.
  1475. </p></dd></dl></div><p>
  1476. </p></div></div></div></body></html>