README 3.0 KB

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