README 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. This is the source for the development version of BIND 10.
  2. BIND is the popular implementation of a DNS server, developer
  3. interfaces, and DNS tools. BIND 10 is a rewrite of BIND 9. BIND 10
  4. is written in C++ and Python and provides a modular environment
  5. for serving, maintaining, and developing DNS.
  6. BIND10-devel is new development leading up to the production
  7. BIND 10 release. It contains prototype code and experimental
  8. interfaces. Nevertheless it is ready to use now for testing the
  9. new BIND 10 infrastructure ideas. The Year 2 milestones of the
  10. five year plan are described here:
  11. https://bind10.isc.org/wiki/Year2Milestones
  12. This release includes the bind10 master process, b10-msgq message
  13. bus, b10-auth authoritative DNS server (with SQLite3 backend),
  14. b10-cmdctl remote control daemon, b10-cfgmgr configuration manager,
  15. b10-xfrin AXFR inbound service, b10-xfrout outgoing AXFR service,
  16. and a new libdns++ library for C++ with a python wrapper.
  17. Documentation is included and also available via the BIND 10
  18. website at http://bind10.isc.org/
  19. The latest released source may be downloaded from:
  20. ftp://ftp.isc.org/isc/bind10/
  21. Users and developers are encouraged to participate on the BIND 10
  22. mailing lists:
  23. https://lists.isc.org/mailman/listinfo/bind10-users
  24. https://lists.isc.org/mailman/listinfo/bind10-dev
  25. Bugs may be reported as tickets via the developers website:
  26. http://bind10.isc.org/
  27. BUILDING
  28. See the Guide for detailed installation directions at
  29. doc/guide/bind10-guide.html.
  30. Simple build instructions:
  31. ./configure
  32. make
  33. If building from Subversion repository, run:
  34. autoreconf --install
  35. before running ./configure
  36. Requires autoconf 2.59 or newer.
  37. Use automake-1.11 or better for working Python 3.1 tests.
  38. Alternatively, you could manually specify an absolute path to python
  39. executable by the --with-pythonpath option of the configure script,
  40. e.g.,
  41. % ./configure --with-pythonpath=/usr/local/bin/python3.1
  42. Operating-System specific tips:
  43. - FreeBSD
  44. You may need to install a python binding for sqlite3 by hand. A
  45. sample procedure is as follows:
  46. - add the following to /etc/make.conf
  47. PYTHON_VERSION=3.1
  48. - build and install the python binding from ports, assuming the top
  49. directory of the ports system is /usr/ports
  50. % cd /usr/ports/databases/py-sqlite3/
  51. % make
  52. % sudo make install
  53. INSTALLATION
  54. Install with:
  55. make install
  56. TESTS
  57. The tests use the googletests framework for C++. It is available
  58. from http://code.google.com/p/googletest/. To enable the tests,
  59. configure BIND 10 with:
  60. ./configure --with-gtest
  61. Then run "make check" to run these tests.
  62. TEST COVERAGE
  63. The code coverage report for the C++ tests uses LCOV. It is available
  64. from http://ltp.sourceforge.net/. To generate your own HTML report,
  65. first configure BIND 10 with:
  66. ./configure --with-lcov
  67. Doing code coverage tests:
  68. make coverage
  69. Does the following:
  70. make clean-coverage
  71. Zeroes the lcov code coverage counters and removes the coverage HTML.
  72. make perform-coverage
  73. Runs the C++ tests (using googletests framework).
  74. make report-coverage
  75. Generates the coverage HTML, excluding some unrelated headers.
  76. The HTML reports are placed in a directory called coverage/.
  77. DEVELOPERS
  78. The generated run_*.sh scripts available in the src/bin directories
  79. are for running the code using the source tree.
  80. RUNNING
  81. You can start the BIND 10 processes by running bind10 which is
  82. installed to the sbin directory under the installation prefix.
  83. The default location is:
  84. /usr/local/sbin/bind10
  85. For development work, you can also run the bind10 services from the
  86. source tree:
  87. ./src/bin/bind10/run_bind10.sh
  88. (Which will use the modules and configurations also from the source
  89. tree.)
  90. The server will listen on port 5300 for DNS requests.
  91. CONFIGURATION
  92. Commands can be given through the bindctl tool.
  93. The server must be running for bindctl to work.
  94. The following configuration commands are available
  95. help: show the different command modules
  96. <module> help: show the commands for module
  97. <module> <command> help: show info for the command
  98. config show [identifier]: Show the currently set values. If no identifier is
  99. given, the current location is used. If a config
  100. option is a list or a map, the value is not
  101. shown directly, but must be requested separately.
  102. config go [identifier]: Go to the given location within the configuration.
  103. config set [identifier] <value>: Set a configuration value.
  104. config unset [identifier]: Remove a value (reverts to default if the option
  105. is mandatory).
  106. config add [identifier] <value>: add a value to a list
  107. config remove [identifier] <value>: remove a value from a list
  108. config revert: Revert all changes that have not been committed
  109. config commit: Commit all changes
  110. config diff: Show the changes that have not been committed yet
  111. EXAMPLE SESSION
  112. ~> bindctl
  113. ["login success "] login as root
  114. > help
  115. BindCtl, verstion 0.1
  116. usage: <module name> <command name> [param1 = value1 [, param2 = value2]]
  117. Type Tab character to get the hint of module/command/paramters.
  118. Type "help(? h)" for help on bindctl.
  119. Type "<module_name> help" for help on the specific module.
  120. Type "<module_name> <command_name> help" for help on the specific command.
  121. Available module names:
  122. help Get help for bindctl
  123. config Configuration commands
  124. Xfrin same here
  125. Auth same here
  126. Boss same here
  127. > config help
  128. Module config Configuration commands
  129. Available commands:
  130. help (Get help for module)
  131. show (Show configuration)
  132. add (Add entry to configuration list)
  133. remove (Remove entry from configuration list)
  134. set (Set a configuration value)
  135. unset (Unset a configuration value)
  136. diff (Show all local changes)
  137. revert (Revert all local changes)
  138. commit (Commit all local changes)
  139. go (Go to a specific configuration part)
  140. > config show
  141. Xfrin/ module
  142. Auth/ module
  143. Boss/ module
  144. > config show Xfrin
  145. transfers_in: 10 integer
  146. > config go Auth
  147. /Auth> config show
  148. database_file: None string
  149. /Auth> config set database_file /tmp/bind10_zones.db
  150. /Auth> config commit
  151. /Auth> config go /
  152. > config show Auth/
  153. database_file: /tmp/bind10_zones.db string
  154. > config diff
  155. {}
  156. > config set Auth/foobar
  157. Error: missing identifier or value
  158. > config set Auth/database_file foobar
  159. > config diff
  160. {'Auth': {'database_file': 'foobar'}}
  161. > config revert
  162. > config diff
  163. {}
  164. > quit