bind10-guide.xml 47 KB

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