README 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. This is the source for the BIND 10 testing branch known as
  2. the parkinglot. This is a simple authoritative server used
  3. to provide identical records for many zones, such as in
  4. a DNS parking service.
  5. BUILDING
  6. Simple build instructions:
  7. autoreconf
  8. ./configure
  9. make
  10. Requires autoconf 2.59 or newer.
  11. Use automake-1.11 or better for working Python 3.1 tests.
  12. Install with:
  13. make install
  14. TEST COVERAGE
  15. Doing code coverage tests:
  16. make coverage
  17. Does the following:
  18. make clean-coverage
  19. Zeroes the lcov code coverage counters and removes the coverage HTML.
  20. make perform-coverage
  21. Runs the C++ tests (using googletests framework).
  22. make report-coverage
  23. Generates the coverage HTML, excluding some unrelated headers.
  24. The HTML reports are placed in a directory called coverage/.
  25. RUNNING
  26. You can start the BIND 10 processes by running bind10 which is
  27. installed to the sbin directory under the installation prefix.
  28. The default location is:
  29. /usr/local/sbin/bind10
  30. For development work, you can also run the bind10 services from the
  31. source tree:
  32. ./src/bin/bind10/run_bind10.sh
  33. (Which will use the modules and configurations also from the source
  34. tree.)
  35. The server will listen on port 5300 for DNS requests.
  36. CONFIGURATION
  37. Commands can be given through the bindctl tool.
  38. The server must be running for bindctl to work.
  39. The following configuration commands are available
  40. help: show the different command modules
  41. <module> help: show the commands for module
  42. <module> <command> help: show info for the command
  43. config show [identifier]: Show the currently set values. If no identifier is
  44. given, the current location is used. If a config
  45. option is a list or a map, the value is not
  46. shown directly, but must be requested separately.
  47. config go [identifier]: Go to the given location within the configuration.
  48. config set [identifier] <value>: Set a configuration value.
  49. config unset [identifier]: Remove a value (reverts to default if the option
  50. is mandatory).
  51. config add [identifier] <value>: add a value to a list
  52. config remove [identifier] <value>: remove a value from a list
  53. config revert: Revert all changes that have not been committed
  54. config commit: Commit all changes
  55. EXAMPLE SESSION
  56. ~> bindctl
  57. > config show
  58. ParkingLot/ module
  59. > config show ParkingLot/
  60. port: 5300 integer (default)
  61. zones/ list
  62. a_records/ list (default)
  63. aaaa_records/ list (default)
  64. ns_records/ list (default)
  65. > config go ParkingLot/
  66. /ParkingLot> config show
  67. port: 5300 integer (default)
  68. zones/ list
  69. a_records/ list (default)
  70. aaaa_records/ list (default)
  71. ns_records/ list (default)
  72. /ParkingLot> config show zones
  73. /ParkingLot> config add zone tjeb.nl
  74. Error: /ParkingLot/zone not found
  75. /ParkingLot> config add zones tjeb.nl
  76. /ParkingLot> config show zones
  77. zone_name: tjeb.nl string
  78. /ParkingLot> config show
  79. port: 5300 integer (default)
  80. zones/ list (modified)
  81. a_records/ list (default)
  82. aaaa_records/ list (default)
  83. ns_records/ list (default)
  84. /ParkingLot> config go /
  85. > config show ParkingLot/port
  86. port: 5300 integer (default)
  87. > config go ParkingLot/a_records/
  88. /ParkingLot/a_records> config show
  89. address: 127.0.0.1 string
  90. /ParkingLot/a_records> config add "127.0.0.2"
  91. /ParkingLot/a_records> config show
  92. address: 127.0.0.2 string
  93. /ParkingLot/a_records>