bind10-guide.xml 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY mdash "&#x2014;" >
  5. <!ENTITY % version SYSTEM "version.ent">
  6. %version;
  7. ]>
  8. <book>
  9. <?xml-stylesheet href="bind10-guide.css" type="text/css"?>
  10. <bookinfo>
  11. <title>BIND 10 Guide</title>
  12. <subtitle>Administrator Reference for BIND 10</subtitle>
  13. <copyright>
  14. <year>2010-2011</year><holder>Internet Systems Consortium, Inc.</holder>
  15. </copyright>
  16. <abstract>
  17. <para>BIND 10 is a Domain Name System (DNS) suite managed by
  18. Internet Systems Consortium (ISC). It includes DNS libraries
  19. and modular components for controlling authoritative and
  20. recursive DNS servers.
  21. </para>
  22. <para>
  23. This is the reference guide for BIND 10 version &__VERSION__;.
  24. The most up-to-date version of this document, along with
  25. other documents for BIND 10, can be found at <ulink
  26. url="http://bind10.isc.org/docs"/>. </para> </abstract>
  27. <releaseinfo>This is the reference guide for BIND 10 version
  28. &__VERSION__;.</releaseinfo>
  29. </bookinfo>
  30. <chapter id="intro">
  31. <title>Introduction</title>
  32. <para>
  33. BIND is the popular implementation of a DNS server, developer
  34. interfaces, and DNS tools.
  35. BIND 10 is a rewrite of BIND 9. BIND 10 is written in C++ and Python
  36. and provides a modular environment for serving and maintaining DNS.
  37. </para>
  38. <note>
  39. <para>
  40. This guide covers the experimental prototype of
  41. BIND 10 version &__VERSION__;.
  42. </para>
  43. </note>
  44. <note>
  45. <para>
  46. BIND 10 provides a EDNS0- and DNSSEC-capable
  47. authoritative DNS server and a caching recursive name server
  48. which also provides forwarding.
  49. </para>
  50. </note>
  51. <section>
  52. <title>Supported Platforms</title>
  53. <para>
  54. BIND 10 builds have been tested on Debian GNU/Linux 5,
  55. Ubuntu 9.10, NetBSD 5, Solaris 10, FreeBSD 7 and 8, and CentOS
  56. Linux 5.3.
  57. It has been tested on Sparc, i386, and amd64 hardware
  58. platforms.
  59. It is planned for BIND 10 to build, install and run on
  60. Windows and standard Unix-type platforms.
  61. </para>
  62. </section>
  63. <section>
  64. <title>Required Software</title>
  65. <para>
  66. BIND 10 requires Python 3.1. Later versions may work, but Python
  67. 3.1 is the minimum version which will work.
  68. </para>
  69. <para>
  70. BIND 10 uses the Botan crypto library for C++. It requires
  71. at least Botan version 1.8.
  72. </para>
  73. <para>
  74. BIND 10 uses the log4cplus C++ logging library. It requires
  75. at least log4cplus version 1.0.3.
  76. </para>
  77. <para>
  78. The authoritative server requires SQLite 3.3.9 or newer.
  79. The <command>b10-xfrin</command>, <command>b10-xfrout</command>,
  80. and <command>b10-zonemgr</command> modules require the
  81. libpython3 library and the Python _sqlite3.so module.
  82. </para>
  83. <!-- TODO: this will change ... -->
  84. <!-- TODO: list where to get these from -->
  85. <note>
  86. <para>
  87. Some operating systems do not provide these dependencies
  88. in their default installation nor standard packages
  89. collections.
  90. You may need to install them separately.
  91. </para>
  92. </note>
  93. </section>
  94. <section id="starting_stopping">
  95. <title>Starting and Stopping the Server</title>
  96. <para>
  97. BIND 10 is modular. Part of this modularity is
  98. accomplished using multiple cooperating processes which, together,
  99. provide the server functionality. This is a change from
  100. the previous generation of BIND software, which used a
  101. single process.
  102. </para>
  103. <para>
  104. At first, running many different processes may seem confusing.
  105. However, these processes are started, stopped, and maintained
  106. by a single command, <command>bind10</command>.
  107. This command starts a master process which will start other
  108. processes as needed.
  109. The processes started by the <command>bind10</command>
  110. command have names starting with "b10-", including:
  111. </para>
  112. <para>
  113. <itemizedlist>
  114. <listitem>
  115. <simpara>
  116. <command>b10-msgq</command> &mdash;
  117. Message bus daemon.
  118. This process coordinates communication between all of the other
  119. BIND 10 processes.
  120. </simpara>
  121. </listitem>
  122. <listitem>
  123. <simpara>
  124. <command>b10-auth</command> &mdash;
  125. Authoritative DNS server.
  126. This process serves DNS requests.
  127. </simpara>
  128. </listitem>
  129. <listitem>
  130. <simpara>
  131. <command>b10-cfgmgr</command> &mdash;
  132. Configuration manager.
  133. This process maintains all of the configuration for BIND 10.
  134. </simpara>
  135. </listitem>
  136. <listitem>
  137. <simpara>
  138. <command>b10-cmdctl</command> &mdash;
  139. Command and control service.
  140. This process allows external control of the BIND 10 system.
  141. </simpara>
  142. </listitem>
  143. <listitem>
  144. <simpara>
  145. <command>b10-resolver</command> &mdash;
  146. Recursive name server.
  147. This process handles incoming queries.
  148. <!-- TODO: -->
  149. </simpara>
  150. </listitem>
  151. <listitem>
  152. <simpara>
  153. <command>b10-stats</command> &mdash;
  154. Statistics collection daemon.
  155. This process collects and reports statistics data.
  156. </simpara>
  157. </listitem>
  158. <listitem>
  159. <simpara>
  160. <command>b10-xfrin</command> &mdash;
  161. Incoming zone transfer service.
  162. This process is used to transfer a new copy
  163. of a zone into BIND 10, when acting as a secondary server.
  164. </simpara>
  165. </listitem>
  166. <listitem>
  167. <simpara>
  168. <command>b10-xfrout</command> &mdash;
  169. Outgoing zone transfer service.
  170. This process is used to handle transfer requests to
  171. send a local zone to a remote secondary server,
  172. when acting as a master server.
  173. </simpara>
  174. </listitem>
  175. <listitem>
  176. <simpara>
  177. <command>b10-zonemgr</command> &mdash;
  178. Secondary manager.
  179. This process keeps track of timers and other
  180. necessary information for BIND 10 to act as a slave server.
  181. </simpara>
  182. </listitem>
  183. </itemizedlist>
  184. </para>
  185. <para>
  186. These are ran automatically by <command>bind10</command>
  187. and do not need to be run manually.
  188. </para>
  189. </section>
  190. <section id="managing_once_running">
  191. <title>Managing BIND 10</title>
  192. <para>
  193. Once BIND 10 is running, a few commands are used to interact
  194. directly with the system:
  195. <itemizedlist>
  196. <listitem>
  197. <simpara>
  198. <command>bindctl</command> &mdash;
  199. interactive administration interface.
  200. This is a command-line tool which allows an administrator
  201. to control BIND 10.
  202. </simpara>
  203. </listitem>
  204. <listitem>
  205. <simpara>
  206. <command>b10-loadzone</command> &mdash;
  207. zone file loader.
  208. This tool will load standard masterfile-format zone files into
  209. BIND 10.
  210. </simpara>
  211. </listitem>
  212. <listitem>
  213. <simpara>
  214. <command>b10-cmdctl-usermgr</command> &mdash;
  215. user access control.
  216. This tool allows an administrator to authorize additional users
  217. to manage BIND 10.
  218. </simpara>
  219. </listitem>
  220. <!-- TODO usermgr -->
  221. </itemizedlist>
  222. </para>
  223. </section>
  224. <para>
  225. The tools and modules are covered in full detail in this guide.
  226. <!-- TODO point to these -->
  227. In addition, manual pages are also provided in the default installation.
  228. </para>
  229. <!--
  230. bin/
  231. bindctl*
  232. host*
  233. lib/
  234. libauth
  235. libdns
  236. libexceptions
  237. python3.1/site-packages/isc/{cc,config}
  238. sbin/
  239. bind10
  240. share/
  241. share/bind10/
  242. auth.spec
  243. b10-cmdctl.pem
  244. bob.spec
  245. passwd.csv
  246. man/
  247. var/
  248. bind10/b10-config.db
  249. -->
  250. <para>
  251. BIND 10 also provides libraries and programmer interfaces
  252. for C++ and Python for the message bus, configuration backend,
  253. and, of course, DNS. These include detailed developer
  254. documentation and code examples.
  255. <!-- TODO point to this -->
  256. </para>
  257. </chapter>
  258. <chapter id="installation">
  259. <title>Installation</title>
  260. <section>
  261. <title>Building Requirements</title>
  262. <para>
  263. In addition to the run-time requirements, building BIND 10
  264. from source code requires various development include headers.
  265. </para>
  266. <note>
  267. <simpara>
  268. Some operating systems have split their distribution packages into
  269. a run-time and a development package. You will need to install
  270. the development package versions, which include header files and
  271. libraries, to build BIND 10 from source code.
  272. </simpara>
  273. </note>
  274. <para>
  275. Building from source code requires the Boost
  276. build-time headers. At least Boost version 1.35 is required.
  277. <!-- TODO: we don't check for this version -->
  278. <!-- NOTE: jreed has tested with 1.34, 1.38, and 1.41. -->
  279. </para>
  280. <para>
  281. To build BIND 10, also install the Botan (at least version
  282. 1.8) and the log4cplus (at least version 1.0.3)
  283. development include headers.
  284. </para>
  285. <!--
  286. TODO
  287. Debian and Ubuntu:
  288. libgmp3-dev and libbz2-dev required for botan too
  289. -->
  290. <para>
  291. <!-- TODO: is this needed at build time? test time? -->
  292. The Python Library and Python _sqlite3 module are required to
  293. enable the Xfrout and Xfrin support.
  294. </para>
  295. <note><simpara>
  296. The Python related libraries and modules need to be built
  297. for Python 3.1.
  298. </simpara></note>
  299. <para>
  300. Building BIND 10 also requires a C++ compiler and
  301. standard development headers, make, and pkg-config.
  302. BIND 10 builds have been tested with GCC g++ 3.4.3, 4.1.2,
  303. 4.1.3, 4.2.1, 4.3.2, and 4.4.1; Clang++ 2.8; and Sun C++ 5.10.
  304. </para>
  305. </section>
  306. <section id="quickstart">
  307. <title>Quick start</title>
  308. <note>
  309. <simpara>
  310. This quickly covers the standard steps for installing
  311. and deploying BIND 10 as an authoritative name server using
  312. its defaults. For troubleshooting, full customizations and further
  313. details, see the respective chapters in the BIND 10 guide.
  314. </simpara>
  315. </note>
  316. <para>
  317. To quickly get started with BIND 10, follow these steps.
  318. </para>
  319. <orderedlist>
  320. <listitem>
  321. <simpara>
  322. Install required build dependencies.
  323. </simpara>
  324. </listitem>
  325. <listitem>
  326. <simpara>
  327. Download the BIND 10 source tar file from
  328. <ulink url="ftp://ftp.isc.org/isc/bind10/"/>.
  329. </simpara>
  330. </listitem>
  331. <listitem>
  332. <para>Extract the tar file:
  333. <screen>$ <userinput>gzcat bind10-<replaceable>VERSION</replaceable>.tar.gz | tar -xvf -</userinput></screen>
  334. </para>
  335. </listitem>
  336. <listitem>
  337. <para>Go into the source and run configure:
  338. <screen>$ <userinput>cd bind10-<replaceable>VERSION</replaceable></userinput>
  339. $ <userinput>./configure</userinput></screen>
  340. </para>
  341. </listitem>
  342. <listitem>
  343. <para>Build it:
  344. <screen>$ <userinput>make</userinput></screen>
  345. </para>
  346. </listitem>
  347. <listitem>
  348. <para>Install it (to default /usr/local):
  349. <screen>$ <userinput>make install</userinput></screen>
  350. </para>
  351. </listitem>
  352. <listitem>
  353. <para>Start the server:
  354. <screen>$ <userinput>/usr/local/sbin/bind10</userinput></screen>
  355. </para>
  356. </listitem>
  357. <listitem>
  358. <para>Test it; for example:
  359. <screen>$ <userinput>dig @127.0.0.1 -c CH -t TXT authors.bind</userinput></screen>
  360. </para>
  361. </listitem>
  362. <listitem>
  363. <para>Load desired zone file(s), for example:
  364. <screen>$ <userinput>b10-loadzone <replaceable>your.zone.example.org</replaceable></userinput></screen>
  365. </para>
  366. </listitem>
  367. <listitem>
  368. <simpara>
  369. Test the new zone.
  370. </simpara>
  371. </listitem>
  372. </orderedlist>
  373. </section>
  374. <section id="install">
  375. <title>Installation from source</title>
  376. <para>
  377. BIND 10 is open source software written in C++ and Python.
  378. It is freely available in source code form from ISC via
  379. the Git code revision control system or as a downloadable
  380. tar file. It may also be available in pre-compiled ready-to-use
  381. packages from operating system vendors.
  382. </para>
  383. <section>
  384. <title>Download Tar File</title>
  385. <para>
  386. Downloading a release tar file is the recommended method to
  387. obtain the source code.
  388. </para>
  389. <para>
  390. The BIND 10 releases are available as tar file downloads from
  391. <ulink url="ftp://ftp.isc.org/isc/bind10/"/>.
  392. Periodic development snapshots may also be available.
  393. </para>
  394. <!-- TODO -->
  395. </section>
  396. <section>
  397. <title>Retrieve from Git</title>
  398. <para>
  399. Downloading this "bleeding edge" code is recommended only for
  400. developers or advanced users. Using development code in a production
  401. environment is not recommended.
  402. </para>
  403. <note>
  404. <para>
  405. When using source code retrieved via Git additional
  406. software will be required: automake (v1.11 or newer),
  407. libtoolize, and autoconf (2.59 or newer).
  408. These may need to be installed.
  409. </para>
  410. </note>
  411. <para>
  412. The latest development code, including temporary experiments
  413. and un-reviewed code, is available via the BIND 10 code revision
  414. control system. This is powered by Git and all the BIND 10
  415. development is public.
  416. The leading development is done in the <quote>master</quote>.
  417. </para>
  418. <para>
  419. The code can be checked out from
  420. <filename>git://bind10.isc.org/bind10</filename>;
  421. for example:
  422. <screen>$ <userinput>git clone git://bind10.isc.org/bind10</userinput></screen>
  423. </para>
  424. <para>
  425. When checking out the code from
  426. the code version control system, it doesn't include the
  427. generated configure script, Makefile.in files, nor the
  428. related configure files.
  429. They can be created by running <command>autoreconf</command>
  430. with the <option>--install</option> switch.
  431. This will run <command>autoconf</command>,
  432. <command>aclocal</command>,
  433. <command>libtoolize</command>,
  434. <command>autoheader</command>,
  435. <command>automake</command>,
  436. and related commands.
  437. </para>
  438. </section>
  439. <section>
  440. <title>Configure before the build</title>
  441. <para>
  442. BIND 10 uses the GNU Build System to discover build environment
  443. details.
  444. To generate the makefiles using the defaults, simply run:
  445. <screen>$ <userinput>./configure</userinput></screen>
  446. </para>
  447. <para>
  448. Run <command>./configure</command> with the <option>--help</option>
  449. switch to view the different options. The commonly-used options are:
  450. <variablelist>
  451. <varlistentry>
  452. <term>--prefix</term>
  453. <listitem>
  454. <simpara>Define the the installation location (the
  455. default is <filename>/usr/local/</filename>).
  456. </simpara>
  457. </listitem>
  458. </varlistentry>
  459. <varlistentry>
  460. <term>--with-boost-include</term>
  461. <listitem>
  462. <simpara>Define the path to find the Boost headers.
  463. </simpara>
  464. </listitem>
  465. </varlistentry>
  466. <varlistentry>
  467. <term>--with-pythonpath</term>
  468. <listitem>
  469. <simpara>Define the path to Python 3.1 if it is not in the
  470. standard execution path.
  471. </simpara>
  472. </listitem>
  473. </varlistentry>
  474. <varlistentry>
  475. <term>--with-gtest</term>
  476. <listitem>
  477. <simpara>Enable building the C++ Unit Tests using the
  478. Google Tests framework. Optionally this can define the
  479. path to the gtest header files and library.
  480. </simpara>
  481. </listitem>
  482. </varlistentry>
  483. </variablelist>
  484. </para>
  485. <!-- TODO: lcov -->
  486. <para>
  487. For example, the following configures it to
  488. find the Boost headers, find the
  489. Python interpreter, and sets the installation location:
  490. <screen>$ <userinput>./configure \
  491. --with-boost-include=/usr/pkg/include \
  492. --with-pythonpath=/usr/pkg/bin/python3.1 \
  493. --prefix=/opt/bind10</userinput></screen>
  494. </para>
  495. <para>
  496. If the configure fails, it may be due to missing or old
  497. dependencies.
  498. </para>
  499. </section>
  500. <section>
  501. <title>Build</title>
  502. <para>
  503. After the configure step is complete, to build the executables
  504. from the C++ code and prepare the Python scripts, run:
  505. <screen>$ <userinput>make</userinput></screen>
  506. </para>
  507. </section>
  508. <section>
  509. <title>Install</title>
  510. <para>
  511. To install the BIND 10 executables, support files,
  512. and documentation, run:
  513. <screen>$ <userinput>make install</userinput></screen>
  514. </para>
  515. <note>
  516. <para>The install step may require superuser privileges.</para>
  517. </note>
  518. </section>
  519. <!-- TODO: tests -->
  520. <section>
  521. <title>Install Hierarchy</title>
  522. <para>
  523. The following is the layout of the complete BIND 10 installation:
  524. <itemizedlist>
  525. <listitem>
  526. <simpara>
  527. <filename>bin/</filename> &mdash;
  528. general tools and diagnostic clients.
  529. </simpara>
  530. </listitem>
  531. <listitem>
  532. <simpara>
  533. <filename>etc/bind10-devel/</filename> &mdash;
  534. configuration files.
  535. </simpara>
  536. </listitem>
  537. <listitem>
  538. <simpara>
  539. <filename>lib/</filename> &mdash;
  540. libraries and python modules.
  541. </simpara>
  542. </listitem>
  543. <listitem>
  544. <simpara>
  545. <filename>libexec/bind10-devel/</filename> &mdash;
  546. executables that a user wouldn't normally run directly and
  547. are not run independently.
  548. These are the BIND 10 modules which are daemons started by
  549. the <command>bind10</command> tool.
  550. </simpara>
  551. </listitem>
  552. <listitem>
  553. <simpara>
  554. <filename>sbin/</filename> &mdash;
  555. commands used by the system administrator.
  556. </simpara>
  557. </listitem>
  558. <listitem>
  559. <simpara>
  560. <filename>share/bind10-devel/</filename> &mdash;
  561. configuration specifications.
  562. </simpara>
  563. </listitem>
  564. <listitem>
  565. <simpara>
  566. <filename>share/man/</filename> &mdash;
  567. manual pages (online documentation).
  568. </simpara>
  569. </listitem>
  570. <listitem>
  571. <simpara>
  572. <filename>var/bind10-devel/</filename> &mdash;
  573. data source and configuration databases.
  574. </simpara>
  575. </listitem>
  576. </itemizedlist>
  577. </para>
  578. </section>
  579. </section>
  580. <!--
  581. <section id="install.troubleshooting">
  582. <title>Troubleshooting</title>
  583. <para>
  584. </para>
  585. </section>
  586. -->
  587. </chapter>
  588. <chapter id="bind10">
  589. <title>Starting BIND10 with <command>bind10</command></title>
  590. <para>
  591. BIND 10 provides the <command>bind10</command> command which
  592. starts up the required processes.
  593. <command>bind10</command>
  594. will also restart processes that exit unexpectedly.
  595. This is the only command needed to start the BIND 10 system.
  596. </para>
  597. <para>
  598. After starting the <command>b10-msgq</command> communications channel,
  599. <command>bind10</command> connects to it,
  600. runs the configuration manager, and reads its own configuration.
  601. Then it starts the other modules.
  602. </para>
  603. <para>
  604. The <command>b10-msgq</command> and <command>b10-cfgmgr</command>
  605. services make up the core. The <command>b10-msgq</command> daemon
  606. provides the communication channel between every part of the system.
  607. The <command>b10-cfgmgr</command> daemon is always needed by every
  608. module, if only to send information about themselves somewhere,
  609. but more importantly to ask about their own settings, and
  610. about other modules.
  611. The <command>bind10</command> master process will also start up
  612. <command>b10-cmdctl</command> for admins to communicate with the
  613. system, <command>b10-auth</command> for authoritative DNS service or
  614. <command>b10-resolver</command> for recursive name service,
  615. <command>b10-stats</command> for statistics collection,
  616. <command>b10-xfrin</command> for inbound DNS zone transfers,
  617. <command>b10-xfrout</command> for outbound DNS zone transfers,
  618. and <command>b10-zonemgr</command> for secondary service.
  619. </para>
  620. <section id="start">
  621. <title>Starting BIND 10</title>
  622. <para>
  623. To start the BIND 10 service, simply run <command>bind10</command>.
  624. Run it with the <option>--verbose</option> switch to
  625. get additional debugging or diagnostic output.
  626. </para>
  627. <!-- TODO: note it doesn't go into background -->
  628. </section>
  629. </chapter>
  630. <chapter id="msgq">
  631. <title>Command channel</title>
  632. <para>
  633. The BIND 10 components use the <command>b10-msgq</command>
  634. message routing daemon to communicate with other BIND 10 components.
  635. The <command>b10-msgq</command> implements what is called the
  636. <quote>Command Channel</quote>.
  637. Processes intercommunicate by sending messages on the command
  638. channel.
  639. Example messages include shutdown, get configurations, and set
  640. configurations.
  641. This Command Channel is not used for DNS message passing.
  642. It is used only to control and monitor the BIND 10 system.
  643. </para>
  644. <para>
  645. Administrators do not communicate directly with the
  646. <command>b10-msgq</command> daemon.
  647. By default, BIND 10 uses port 9912 for the
  648. <command>b10-msgq</command> service.
  649. It listens on 127.0.0.1.
  650. </para>
  651. <!-- TODO: this is broken, see Trac #111
  652. <para>
  653. To select an alternate port for the <command>b10-msgq</command> to
  654. use, run <command>bind10</command> specifying the option:
  655. <screen> $ <userinput>bind10 -TODO-msgq-port 9912</userinput></screen>
  656. </para>
  657. -->
  658. <!-- TODO: upcoming plans:
  659. Unix domain sockets
  660. -->
  661. </chapter>
  662. <chapter id="cfgmgr">
  663. <title>Configuration manager</title>
  664. <para>
  665. The configuration manager, <command>b10-cfgmgr</command>,
  666. handles all BIND 10 system configuration. It provides
  667. persistent storage for configuration, and notifies running
  668. modules of configuration changes.
  669. </para>
  670. <para>
  671. The <command>b10-auth</command> and <command>b10-xfrin</command>
  672. daemons and other components receive their configurations
  673. from the configuration manager over the <command>b10-msgq</command>
  674. command channel.
  675. </para>
  676. <para>The administrator doesn't connect to it directly, but
  677. uses a user interface to communicate with the configuration
  678. manager via <command>b10-cmdctl</command>'s REST-ful interface.
  679. <command>b10-cmdctl</command> is covered in <xref linkend="cmdctl"/>.
  680. </para>
  681. <!-- TODO -->
  682. <note>
  683. <para>
  684. The development prototype release only provides the
  685. <command>bindctl</command> as a user interface to
  686. <command>b10-cmdctl</command>.
  687. Upcoming releases will provide another interactive command-line
  688. interface and a web-based interface.
  689. </para>
  690. </note>
  691. <para>
  692. The <command>b10-cfgmgr</command> daemon can send all
  693. specifications and all current settings to the
  694. <command>bindctl</command> client (via
  695. <command>b10-cmdctl</command>).
  696. </para>
  697. <para>
  698. <command>b10-cfgmgr</command> relays configurations received
  699. from <command>b10-cmdctl</command> to the appropriate modules.
  700. </para>
  701. <!-- TODO:
  702. Configuration settings for itself are defined as ConfigManager.
  703. TODO: show examples
  704. -->
  705. <!-- TODO:
  706. config changes are actually commands to cfgmgr
  707. -->
  708. <!-- TODO: what about run time config to change this? -->
  709. <!-- jelte: > config set cfgmgr/config_database <file> -->
  710. <!-- TODO: what about command line switch to change this? -->
  711. <para>
  712. The stored configuration file is at
  713. <filename>/usr/local/var/bind10-devel/b10-config.db</filename>.
  714. (The full path is what was defined at build configure time for
  715. <option>--localstatedir</option>.
  716. The default is <filename>/usr/local/var/</filename>.)
  717. The format is loosely based on JSON and is directly parseable
  718. python, but this may change in a future version.
  719. This configuration data file is not manually edited by the
  720. administrator.
  721. </para>
  722. <!--
  723. Well the specfiles have a more fixed format (they must contain specific
  724. stuff), but those are also directly parseable python structures (and
  725. 'coincidentally', our data::element string representation is the same)
  726. loosely based on json, tweaked to be directly parseable in python, but a
  727. subset of that.
  728. wiki page is http://bind10.isc.org/wiki/DataElementDesign
  729. nope, spec files are written by module developers, and db should be done
  730. through bindctl and friends
  731. -->
  732. <para>
  733. The configuration manager does not have any command line arguments.
  734. Normally it is not started manually, but is automatically
  735. started using the <command>bind10</command> master process
  736. (as covered in <xref linkend="bind10"/>).
  737. </para>
  738. <!-- TODO: upcoming plans:
  739. configuration for configuration manager itself. And perhaps we might
  740. change the messaging protocol, but an admin should never see any of that
  741. -->
  742. <!-- TODO: show examples, test this -->
  743. <!--
  744. , so an admin can simply run bindctl,
  745. do config show, and it shows all modules; config show >module> shows all
  746. options for that module
  747. -->
  748. </chapter>
  749. <chapter id="cmdctl">
  750. <title>Remote control daemon</title>
  751. <para>
  752. <command>b10-cmdctl</command> is the gateway between
  753. administrators and the BIND 10 system.
  754. It is a HTTPS server that uses standard HTTP Digest
  755. Authentication for username and password validation.
  756. It provides a REST-ful interface for accessing and controlling
  757. BIND 10.
  758. </para>
  759. <!-- TODO: copy examples from wiki, try with wget -->
  760. <para>
  761. When <command>b10-cmdctl</command> starts, it firsts
  762. asks <command>b10-cfgmgr</command> about what modules are
  763. running and what their configuration is (over the
  764. <command>b10-msgq</command> channel). Then it will start listening
  765. on HTTPS for clients &mdash; the user interface &mdash; such
  766. as <command>bindctl</command>.
  767. </para>
  768. <para>
  769. <command>b10-cmdctl</command> directly sends commands
  770. (received from the user interface) to the specified component.
  771. Configuration changes are actually commands to
  772. <command>b10-cfgmgr</command> so are sent there.
  773. </para>
  774. <!--
  775. TODO:
  776. "For bindctl to list a module's available configurations and
  777. available commands, it communicates over the cmdctl REST interface.
  778. cmdctl then asks cfgmgr over the msgq command channel. Then cfgmgr
  779. asks the module for its specification and also cfgmgr looks in its
  780. own configuration database for current values."
  781. (05:32:03) jelte: i think cmdctl doesn't request it upon a incoming
  782. GET, but rather requests it once and then listens in for updates,
  783. but you might wanna check with likun
  784. -->
  785. <!-- TODO: replace /usr/local -->
  786. <!-- TODO: permissions -->
  787. <para>The HTTPS server requires a private key,
  788. such as a RSA PRIVATE KEY.
  789. The default location is at
  790. <filename>/usr/local/etc/bind10-devel/cmdctl-keyfile.pem</filename>.
  791. (A sample key is at
  792. <filename>/usr/local/share/bind10-devel/cmdctl-keyfile.pem</filename>.)
  793. It also uses a certificate located at
  794. <filename>/usr/local/etc/bind10-devel/cmdctl-certfile.pem</filename>.
  795. (A sample certificate is at
  796. <filename>/usr/local/share/bind10-devel/cmdctl-certfile.pem</filename>.)
  797. This may be a self-signed certificate or purchased from a
  798. certification authority.
  799. </para>
  800. <note><para>
  801. The HTTPS server doesn't support a certificate request from a
  802. client (at this time).
  803. <!-- TODO: maybe allow request from server side -->
  804. The <command>b10-cmdctl</command> daemon does not provide a
  805. public service. If any client wants to control BIND 10, then
  806. a certificate needs to be first received from the BIND 10
  807. administrator.
  808. The BIND 10 installation provides a sample PEM bundle that matches
  809. the sample key and certificate.
  810. </para></note>
  811. <!-- TODO: cross-ref -->
  812. <!-- TODO
  813. openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
  814. but that is a single file, maybethis should go back to that format?
  815. -->
  816. <!--
  817. <para>
  818. (08:20:56) shane: It is in theory possible to run without cmdctl.
  819. (08:21:02) shane: I think we discussed this.
  820. </para>
  821. -->
  822. <!-- TODO: Please check https://bind10.isc.org/wiki/cmd-ctrld -->
  823. <para>
  824. The <command>b10-cmdctl</command> daemon also requires
  825. the user account file located at
  826. <filename>/usr/local/etc/bind10-devel/cmdctl-accounts.csv</filename>.
  827. This comma-delimited file lists the accounts with a user name,
  828. hashed password, and salt.
  829. (A sample file is at
  830. <filename>/usr/local/share/bind10-devel/cmdctl-accounts.csv</filename>.
  831. It contains the user named <quote>root</quote> with the password
  832. <quote>bind10</quote>.)
  833. </para>
  834. <para>
  835. The administrator may create a user account with the
  836. <command>b10-cmdctl-usermgr</command> tool.
  837. </para>
  838. <!-- TODO: show example -->
  839. <!-- TODO: does cmdctl need to be restarted to change cert or key
  840. or accounts database -->
  841. <para>
  842. By default the HTTPS server listens on the localhost port 8080.
  843. The port can be set by using the <option>--port</option> command line option.
  844. The address to listen on can be set using the <option>--address</option> command
  845. line argument.
  846. Each HTTPS connection is stateless and timesout in 1200 seconds
  847. by default. This can be
  848. redefined by using the <option>--idle-timeout</option> command line argument.
  849. </para>
  850. <section id="cmdctl.spec">
  851. <title>Configuration specification for b10-cmdctl</title>
  852. <para>
  853. The configuration items for <command>b10-cmdctl</command> are:
  854. key_file
  855. cert_file
  856. accounts_file
  857. </para>
  858. <!-- TODO -->
  859. <para>
  860. The control commands are:
  861. print_settings
  862. <!-- TODO: remove that -->
  863. shutdown
  864. </para>
  865. <!-- TODO -->
  866. </section>
  867. <!--
  868. TODO
  869. (12:21:30) jinmei: I'd like to have sample session using a command line www client such as wget
  870. (12:21:33) jinmei: btw
  871. -->
  872. </chapter>
  873. <chapter id="bindctl">
  874. <title>Control and configure user interface</title>
  875. <note><para>
  876. For this development prototype release, <command>bindctl</command>
  877. is the only user interface. It is expected that upcoming
  878. releases will provide another interactive command-line
  879. interface and a web-based interface for controlling and
  880. configuring BIND 10.
  881. </para></note>
  882. <para>
  883. The <command>bindctl</command> tool provides an interactive
  884. prompt for configuring, controlling, and querying the BIND 10
  885. components.
  886. It communicates directly with a REST-ful interface over HTTPS
  887. provided by <command>b10-cmdctl</command>. It doesn't
  888. communicate to any other components directly.
  889. </para>
  890. <!-- TODO: explain and show interface -->
  891. <para>
  892. Configuration changes are actually commands to
  893. <command>b10-cfgmgr</command>. So when <command>bindctl</command>
  894. sends a configuration, it is sent to <command>b10-cmdctl</command>
  895. (over a HTTPS connection); then <command>b10-cmdctl</command>
  896. sends the command (over a <command>b10-msgq</command> command
  897. channel) to <command>b10-cfgmgr</command> which then stores
  898. the details and relays (over a <command>b10-msgq</command> command
  899. channel) the configuration on to the specified module.
  900. </para>
  901. <para>
  902. </para>
  903. </chapter>
  904. <chapter id="authserver">
  905. <title>Authoritative Server</title>
  906. <para>
  907. The <command>b10-auth</command> is the authoritative DNS server.
  908. It supports EDNS0 and DNSSEC. It supports IPv6.
  909. Normally it is started by the <command>bind10</command> master
  910. process.
  911. </para>
  912. <section>
  913. <title>Server Configurations</title>
  914. <!-- TODO: offers command line options but not used
  915. since we used bind10 -->
  916. <para>
  917. <command>b10-auth</command> is configured via the
  918. <command>b10-cfgmgr</command> configuration manager.
  919. The module name is <quote>Auth</quote>.
  920. The configuration data item is:
  921. <variablelist>
  922. <varlistentry>
  923. <term>database_file</term>
  924. <listitem>
  925. <simpara>This is an optional string to define the path to find
  926. the SQLite3 database file.
  927. <!-- TODO: -->
  928. Note: Later the DNS server will use various data source backends.
  929. This may be a temporary setting until then.
  930. </simpara>
  931. </listitem>
  932. </varlistentry>
  933. </variablelist>
  934. </para>
  935. <para>
  936. The configuration command is:
  937. <variablelist>
  938. <varlistentry>
  939. <term>shutdown</term>
  940. <listitem>
  941. <simpara>Stop the authoritative DNS server.
  942. </simpara>
  943. <!-- TODO: what happens when this is sent, will bind10 restart? -->
  944. </listitem>
  945. </varlistentry>
  946. </variablelist>
  947. </para>
  948. <!-- TODO: examples of setting or running above? -->
  949. </section>
  950. <section>
  951. <title>Data Source Backends</title>
  952. <note><para>
  953. For the development prototype release, <command>b10-auth</command>
  954. supports a SQLite3 data source backend and in-memory data source
  955. backend.
  956. Upcoming versions will be able to use multiple different
  957. data sources, such as MySQL and Berkeley DB.
  958. </para></note>
  959. <para>
  960. By default, the SQLite3 backend uses the data file located at
  961. <filename>/usr/local/var/bind10-devel/zone.sqlite3</filename>.
  962. (The full path is what was defined at build configure time for
  963. <option>--localstatedir</option>.
  964. The default is <filename>/usr/local/var/</filename>.)
  965. This data file location may be changed by defining the
  966. <quote>database_file</quote> configuration.
  967. </para>
  968. </section>
  969. <section>
  970. <title>Loading Master Zones Files</title>
  971. <para>
  972. RFC 1035 style DNS master zone files may imported
  973. into a BIND 10 data source by using the
  974. <command>b10-loadzone</command> utility.
  975. </para>
  976. <para>
  977. <command>b10-loadzone</command> supports the following
  978. special directives (control entries):
  979. <variablelist>
  980. <varlistentry>
  981. <term>$INCLUDE</term>
  982. <listitem>
  983. <simpara>Loads an additional zone file. This may be recursive.
  984. </simpara>
  985. </listitem>
  986. </varlistentry>
  987. <varlistentry>
  988. <term>$ORIGIN</term>
  989. <listitem>
  990. <simpara>Defines the relative domain name.
  991. </simpara>
  992. </listitem>
  993. </varlistentry>
  994. <varlistentry>
  995. <term>$TTL</term>
  996. <listitem>
  997. <simpara>Defines the time-to-live value used for following
  998. records that don't include a TTL.
  999. </simpara>
  1000. </listitem>
  1001. </varlistentry>
  1002. </variablelist>
  1003. </para>
  1004. <para>
  1005. The <option>-o</option> argument may be used to define the
  1006. default origin for loaded zone file records.
  1007. </para>
  1008. <note>
  1009. <para>
  1010. In the development prototype release, only the SQLite3 back
  1011. end is used.
  1012. By default, it stores the zone data in
  1013. <filename>/usr/local/var/bind10-devel/zone.sqlite3</filename>
  1014. unless the <option>-d</option> switch is used to set the
  1015. database filename.
  1016. Multiple zones are stored in a single SQLite3 zone database.
  1017. </para>
  1018. </note>
  1019. <para>
  1020. If you reload a zone already existing in the database,
  1021. all records from that prior zone disappear and a whole new set
  1022. appears.
  1023. </para>
  1024. <!--TODO: permissions for xfrin or loadzone to create the file -->
  1025. </section>
  1026. <!--
  1027. TODO
  1028. <section>
  1029. <title>Troubleshooting</title>
  1030. <para>
  1031. </para>
  1032. </section>
  1033. -->
  1034. </chapter>
  1035. <chapter id="xfrin">
  1036. <title>Incoming Zone Transfers</title>
  1037. <para>
  1038. Incoming zones are transferred using the <command>b10-xfrin</command>
  1039. process which is started by <command>bind10</command>.
  1040. When received, the zone is stored in the BIND 10
  1041. data store, and its records can be served by
  1042. <command>b10-auth</command>.
  1043. In combination with <command>b10-zonemgr</command> (for
  1044. automated SOA checks), this allows the BIND 10 server to
  1045. provide <quote>secondary</quote> service.
  1046. </para>
  1047. <note><simpara>
  1048. The current development release of BIND 10 only supports
  1049. AXFR. (IXFR is not supported.)
  1050. <!-- TODO: sqlite3 data source only? -->
  1051. </simpara></note>
  1052. <!-- TODO:
  1053. how to tell bind10 you are a secondary?
  1054. when will it first attempt to check for new zone? (using REFRESH?)
  1055. what if zonemgr is not running?
  1056. what if a NOTIFY is sent?
  1057. -->
  1058. <para>
  1059. To manually trigger a zone transfer to retrieve a remote zone,
  1060. you may use the <command>bindctl</command> utility.
  1061. For example, at the <command>bindctl</command> prompt run:
  1062. <screen>&gt; <userinput>Xfrin retransfer zone_name="<option>foo.example.org</option>" master=<option>192.0.2.99</option></userinput></screen>
  1063. </para>
  1064. <!-- TODO: can that retransfer be used to identify a new zone? -->
  1065. <!-- TODO: what if doesn't exist at that master IP? -->
  1066. </chapter>
  1067. <chapter id="xfrout">
  1068. <title>Outbound Zone Transfers</title>
  1069. <para>
  1070. The <command>b10-xfrout</command> process is started by
  1071. <command>bind10</command>.
  1072. When the <command>b10-auth</command> authoritative DNS server
  1073. receives an AXFR request, <command>b10-xfrout</command>
  1074. sends the zone.
  1075. This is used to provide master DNS service to share zones
  1076. to secondary name servers.
  1077. The <command>b10-xfrout</command> is also used to send
  1078. NOTIFY messages to slaves.
  1079. </para>
  1080. <note><simpara>
  1081. The current development release of BIND 10 only supports
  1082. AXFR. (IXFR is not supported.)
  1083. Access control is not yet provided.
  1084. </simpara></note>
  1085. <!--
  1086. TODO:
  1087. xfrout section:
  1088. auth servers checks for AXFR query
  1089. sends the XFR query to the xfrout module
  1090. uses /tmp/auth_xfrout_conn which is a socket
  1091. what is XfroutClient xfr_client??
  1092. /tmp/auth_xfrout_conn is not removed
  1093. -->
  1094. </chapter>
  1095. <chapter id="zonemgr">
  1096. <title>Secondary Manager</title>
  1097. <para>
  1098. The <command>b10-zonemgr</command> process is started by
  1099. <command>bind10</command>.
  1100. It keeps track of SOA refresh, retry, and expire timers
  1101. and other details for BIND 10 to perform as a slave.
  1102. When the <command>b10-auth</command> authoritative DNS server
  1103. receives a NOTIFY message, <command>b10-zonemgr</command>
  1104. may tell <command>b10-xfrin</command> to do a refresh
  1105. to start an inbound zone transfer.
  1106. The secondary manager resets its counters when a new zone is
  1107. transferred in.
  1108. </para>
  1109. <note><simpara>
  1110. Access control (such as allowing notifies) is not yet provided.
  1111. The primary/secondary service is not yet complete.
  1112. </simpara></note>
  1113. <!-- TODO: lots to describe for zonemgr -->
  1114. </chapter>
  1115. <chapter id="resolverserver">
  1116. <title>Recursive Name Server</title>
  1117. <para>
  1118. The <command>b10-resolver</command> process is started by
  1119. <command>bind10</command>.
  1120. <!-- TODO
  1121. It provides a resolver so DNS clients can ask it to do recursion
  1122. and it will return answers.
  1123. -->
  1124. </para>
  1125. <para>
  1126. The main <command>bind10</command> process can be configured
  1127. to select to run either the authoritative or resolver.
  1128. By default, it starts the authoritative service.
  1129. <!-- TODO: later both -->
  1130. You may change this using <command>bindctl</command>, for example:
  1131. <screen>
  1132. &gt; <userinput>config set Boss/start_auth false</userinput>
  1133. &gt; <userinput>config set Boss/start_resolver true</userinput>
  1134. &gt; <userinput>config commit</userinput>
  1135. </screen>
  1136. </para>
  1137. <para>
  1138. The master <command>bind10</command> will stop and start
  1139. the desired services.
  1140. </para>
  1141. <para>
  1142. The resolver also needs to be configured to listen on an address
  1143. and port:
  1144. <screen>
  1145. &gt; <userinput>config set Resolver/listen_on [{ "address": "127.0.0.1", "port": 53 }]</userinput>
  1146. &gt; <userinput>config commit</userinput>
  1147. </screen>
  1148. </para>
  1149. <!-- TODO: later the above will have some defaults -->
  1150. <section>
  1151. <title>Forwarding</title>
  1152. <para>
  1153. To enable forwarding, the upstream address and port must be
  1154. configured to forward queries to, such as:
  1155. <screen>
  1156. &gt; <userinput>config set Resolver/forward_addresses [{ "address": "<replaceable>192.168.1.1</replaceable>", "port": 53 }]</userinput>
  1157. &gt; <userinput>config commit</userinput>
  1158. </screen>
  1159. (Replace <replaceable>192.168.1.1</replaceable> to point to your
  1160. full resolver.)
  1161. </para>
  1162. <para>
  1163. Normal iterative name service can be re-enabled by clearing the
  1164. forwarding address(es); for example:
  1165. <screen>
  1166. &gt; <userinput>config set Resolver/forward_addresses []</userinput>
  1167. &gt; <userinput>config commit</userinput>
  1168. </screen>
  1169. </para>
  1170. </section>
  1171. <!-- TODO: later try this
  1172. > config set Resolver/forward_addresses[0]/address "192.168.8.8"
  1173. > config set Resolver/forward_addresses[0]/port 53
  1174. then change those defaults with config set Resolver/forward_addresses[0]/address "1.2.3.4"
  1175. > config set Resolver/forward_addresses[0]/address "1.2.3.4"
  1176. -->
  1177. </chapter>
  1178. <chapter id="statistics">
  1179. <title>Statistics</title>
  1180. <para>
  1181. The <command>b10-stats</command> process is started by
  1182. <command>bind10</command>.
  1183. It periodically collects statistics data from various modules
  1184. and aggregates it.
  1185. <!-- TODO -->
  1186. </para>
  1187. <para>
  1188. This stats daemon provides commands to identify if it is running,
  1189. show specified or all statistics data, set values, remove data,
  1190. and reset data.
  1191. For example, using <command>bindctl</command>:
  1192. <screen>
  1193. &gt; <userinput>Stats show</userinput>
  1194. {
  1195. "auth.queries.tcp": 1749,
  1196. "auth.queries.udp": 867868,
  1197. "bind10.boot_time": "2011-01-20T16:59:03Z",
  1198. "report_time": "2011-01-20T17:04:06Z",
  1199. "stats.boot_time": "2011-01-20T16:59:05Z",
  1200. "stats.last_update_time": "2011-01-20T17:04:05Z",
  1201. "stats.lname": "4d3869d9_a@jreed.example.net",
  1202. "stats.start_time": "2011-01-20T16:59:05Z",
  1203. "stats.timestamp": 1295543046.823504
  1204. }
  1205. </screen>
  1206. </para>
  1207. </chapter>
  1208. <chapter id="logging">
  1209. <title>Logging</title>
  1210. <!-- TODO: how to configure logging, logging destinations etc. -->
  1211. <para>
  1212. Each message written by BIND 10 to the configured logging destinations
  1213. comprises a number of components that identify the origin of the
  1214. message and, if the message indicates a problem, information about the
  1215. problem that may be useful in fixing it.
  1216. </para>
  1217. <para>
  1218. Consider the message below logged to a file:
  1219. <screen>2011-06-15 13:48:22.034 ERROR [b10-resolver.asiolink]
  1220. ASIODNS_OPENSOCK error 111 opening TCP socket to 127.0.0.1(53)</screen>
  1221. </para>
  1222. <para>
  1223. Note: the layout of messages written to the system logging
  1224. file (syslog) may be slightly different. This message has
  1225. been split across two lines here for display reasons; in the
  1226. logging file, it will appear on one line.)
  1227. </para>
  1228. <para>
  1229. The log message comprises a number of components:
  1230. <variablelist>
  1231. <varlistentry>
  1232. <term>2011-06-15 13:48:22.034</term>
  1233. <listitem><para>
  1234. The date and time at which the message was generated.
  1235. </para></listitem>
  1236. </varlistentry>
  1237. <varlistentry>
  1238. <term>ERROR</term>
  1239. <listitem><para>
  1240. The severity of the message.
  1241. </para></listitem>
  1242. </varlistentry>
  1243. <varlistentry>
  1244. <term>[b10-resolver.asiolink]</term>
  1245. <listitem><para>
  1246. The source of the message. This comprises two components:
  1247. the BIND 10 process generating the message (in this
  1248. case, <command>b10-resolver</command>) and the module
  1249. within the program from which the message originated
  1250. (which in the example is the asynchronous I/O link
  1251. module, asiolink).
  1252. </para></listitem>
  1253. </varlistentry>
  1254. <varlistentry>
  1255. <term>ASIODNS_OPENSOCK</term>
  1256. <listitem><para>
  1257. The message identification. Every message in BIND 10
  1258. has a unique identification, which can be used as an
  1259. index into the <ulink
  1260. url="bind10-messages.html"><citetitle>BIND 10 Messages
  1261. Manual</citetitle></ulink> (<ulink
  1262. url="http://bind10.isc.org/docs/bind10-messages.html"
  1263. />) from which more information can be obtained.
  1264. </para></listitem>
  1265. </varlistentry>
  1266. <varlistentry>
  1267. <term>error 111 opening TCP socket to 127.0.0.1(53)</term>
  1268. <listitem><para>
  1269. A brief description of the cause of the problem. Within this text,
  1270. information relating to the condition that caused the message to
  1271. be logged will be included. In this example, error number 111
  1272. (an operating system-specific error number) was encountered when
  1273. trying to open a TCP connection to port 53 on the local system
  1274. (address 127.0.0.1). The next step would be to find out the reason
  1275. for the failure by consulting your system's documentation to
  1276. identify what error number 111 means.
  1277. </para></listitem>
  1278. </varlistentry>
  1279. </variablelist>
  1280. </para>
  1281. </chapter>
  1282. <!-- TODO: how to help: run unit tests, join lists, review trac tickets -->
  1283. <!-- <index> <title>Index</title> </index> -->
  1284. </book>
  1285. <!--
  1286. TODO:
  1287. Overview
  1288. Getting BIND 10 Installed
  1289. Basics
  1290. Dependencies
  1291. Optional
  1292. Advanced
  1293. How Does Everything Work Together?
  1294. Need Help?
  1295. -->