123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- This is the source for the BIND 10 testing branch known as
- the parkinglot. This is a simple authoritative server used
- to provide identical records for many zones, such as in
- a DNS parking service.
- BUILDING
- Simple build instructions:
- autoreconf --install
- ./configure
- make
- Requires autoconf 2.59 or newer.
- Use automake-1.11 or better for working Python 3.1 tests.
- Install with:
- make install
- TEST COVERAGE
- Doing code coverage tests:
- make coverage
- Does the following:
- make clean-coverage
- Zeroes the lcov code coverage counters and removes the coverage HTML.
- make perform-coverage
- Runs the C++ tests (using googletests framework).
- make report-coverage
- Generates the coverage HTML, excluding some unrelated headers.
- The HTML reports are placed in a directory called coverage/.
- RUNNING
- You can start the BIND 10 processes by running bind10 which is
- installed to the sbin directory under the installation prefix.
- The default location is:
- /usr/local/sbin/bind10
- For development work, you can also run the bind10 services from the
- source tree:
- ./src/bin/bind10/run_bind10.sh
- (Which will use the modules and configurations also from the source
- tree.)
- The server will listen on port 5300 for DNS requests.
- CONFIGURATION
- Commands can be given through the bindctl tool.
- The server must be running for bindctl to work.
- The following configuration commands are available
- help: show the different command modules
- <module> help: show the commands for module
- <module> <command> help: show info for the command
- config show [identifier]: Show the currently set values. If no identifier is
- given, the current location is used. If a config
- option is a list or a map, the value is not
- shown directly, but must be requested separately.
- config go [identifier]: Go to the given location within the configuration.
- config set [identifier] <value>: Set a configuration value.
- config unset [identifier]: Remove a value (reverts to default if the option
- is mandatory).
- config add [identifier] <value>: add a value to a list
- config remove [identifier] <value>: remove a value from a list
- config revert: Revert all changes that have not been committed
- config commit: Commit all changes
- config diff: Show the changes that have not been committed yet
- EXAMPLE SESSION
- ~> bindctl
- ["login success "] login as root
- > help
- BindCtl, verstion 0.1
- usage: <module name> <command name> [param1 = value1 [, param2 = value2]]
- Type Tab character to get the hint of module/command/paramters.
- Type "help(? h)" for help on bindctl.
- Type "<module_name> help" for help on the specific module.
- Type "<module_name> <command_name> help" for help on the specific command.
- Available module names:
- help Get help for bindctl
- config Configuration commands
- Xfrin same here
- Auth same here
- Boss same here
- > config help
- Module config Configuration commands
- Available commands:
- help (Get help for module)
- show (Show configuration)
- add (Add entry to configuration list)
- remove (Remove entry from configuration list)
- set (Set a configuration value)
- unset (Unset a configuration value)
- diff (Show all local changes)
- revert (Revert all local changes)
- commit (Commit all local changes)
- go (Go to a specific configuration part)
- > config show
- Xfrin/ module
- Auth/ module
- Boss/ module
- > config show Xfrin
- transfers_in: 10 integer
- > config go Auth
- /Auth> config show
- database_file: None string
- /Auth> config set database_file /tmp/bind10_zones.db
- /Auth> config commit
- /Auth> config go /
- > config show Auth/
- database_file: /tmp/bind10_zones.db string
- > config diff
- {}
- > config set Auth/foobar
- Error: missing identifier or value
- > config set Auth/database_file foobar
- > config diff
- {'Auth': {'database_file': 'foobar'}}
- > config revert
- > config diff
- {}
- > quit
|