README 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. TEST COVERAGE
  13. Doing code coverage tests:
  14. make coverage
  15. Does the following:
  16. make clean-coverage
  17. Zeroes the lcov code coverage counters and removes the coverage HTML.
  18. make perform-coverage
  19. Runs the C++ tests (using googletests framework).
  20. make report-coverage
  21. Generates the coverage HTML, excluding some unrelated headers.
  22. The HTML reports are placed in a directory called coverage/.
  23. RUNNING
  24. At the moment there is no install yet, you can run the bind10 parkinglot
  25. server from the source tree:
  26. ./src/bin/bind10/bind10
  27. The server will listen on port 5300 for DNS requests.
  28. CONFIGURATION
  29. Commands can be given through the tool bindctl;
  30. cd src/bin/bindctl
  31. sh bindctl
  32. The server must be running for bindctl to work.
  33. The following configuration commands are available
  34. help: show the different command modules
  35. <module> help: show the commands for module
  36. <module> <command> help: show info for the command
  37. config show [identifier]: Show the currently set values. If no identifier is
  38. given, the current location is used. If a config
  39. option is a list or a map, the value is not
  40. shown directly, but must be requested separately.
  41. config go [identifier]: Go to the given location within the configuration.
  42. config set [identifier] <value>: Set a configuration value.
  43. config unset [identifier]: Remove a value (reverts to default if the option
  44. is mandatory).
  45. config add [identifier] <value>: add a value to a list
  46. config remove [identifier] <value>: remove a value from a list
  47. config revert: Revert all changes that have not been committed
  48. config commit: Commit all changes
  49. EXAMPLE SESSION
  50. ~> sh bindctl
  51. > config show
  52. ParkingLot/ module
  53. > config show ParkingLot/
  54. port: 5300 integer (default)
  55. zones/ list
  56. a_records/ list (default)
  57. aaaa_records/ list (default)
  58. ns_records/ list (default)
  59. > config go ParkingLot/
  60. /ParkingLot> config show
  61. port: 5300 integer (default)
  62. zones/ list
  63. a_records/ list (default)
  64. aaaa_records/ list (default)
  65. ns_records/ list (default)
  66. /ParkingLot> config show zones
  67. /ParkingLot> config add zone tjeb.nl
  68. Error: /ParkingLot/zone not found
  69. /ParkingLot> config add zones tjeb.nl
  70. /ParkingLot> config show zones
  71. zone_name: tjeb.nl string
  72. /ParkingLot> config show
  73. port: 5300 integer (default)
  74. zones/ list (modified)
  75. a_records/ list (default)
  76. aaaa_records/ list (default)
  77. ns_records/ list (default)
  78. /ParkingLot> config go /
  79. > config show ParkingLot/port
  80. port: 5300 integer (default)
  81. > config go ParkingLot/a_records/
  82. /ParkingLot/a_records> config show
  83. address: 127.0.0.1 string
  84. /ParkingLot/a_records> config add "127.0.0.2"
  85. /ParkingLot/a_records> config show
  86. address: 127.0.0.2 string
  87. /ParkingLot/a_records>