wiki:CommandLineTool

Jeremy had an idea for a command line tool:

- a command-line tool to load or reload a zone. Examples:

bind-zone --reload --file /etc/bind/path/to/foo.example.org \
        foo.example.org

bind-zone --load --file /etc/bind/path/to/foo.example.org foo.example.org
(--load is default, so switch not needed)

bind-zone --secondary --file /to/slaves/bar.example.org.db \ 
        bar.example.org
(or --slave)

bind-zone --secondary --master ns1.example.org \
  --master 192.168.1.9 --master ns2 foo.example.net

bind-zone --allow-transfer "....." foo.example.org

bind-zone --list-zones

bind-zone --stop bar.example.org
(or maybe --unload?)

bind-zone --dynamic foo.example.com

bind-zone --allow-query "....." foo.example.org

# bind-zone --verbose foo.example.net
Zone foo.example.net loaded.
foo.example.net 86400   IN      SOA      ....
97 zones
allow-query .... acl
allow-transfer .... acl
...

(The above is loaded from some default zone locations, could be a standard 
master file, some XML, in sqllite, etc.)

# bind-zone --verbose foo.example.org
Zone foo.example.org already loaded.
foo.example.net 86400   IN      SOA      ....
97 zones
....
some stats ...

bind-zone --stats foo.example.org
....
Last modified 9 years ago Last modified on May 26, 2009, 2:16:36 PM