Issues with bindctl execute
Spain, Dr. Jeffry A.
spainj at countryday.net
Sun May 20 19:20:11 UTC 2012
I have started to work with the execute command in bindctl in bind10-devel-20120517. I tried the following, which didn't work:
Contents of file bind10-nsb2.conf, which is a slave server configuration file:
execute init_authoritative_server
<several additional configuration commands for Xfrin and Zonemgr>
config remove Boss/components b10-xfrout
Results with bindctl:
# bindctl
["login success "] login as root
> execute file bind10-nsb2.conf
adding Authoritative server component
adding Xfrin component
adding Xfrout component
adding Zone Manager component
Components added. Please enter "config commit" to
finalize initial setup and run the components.
Error: Module 'Xfrin' unknown or not running
...
Error: Module 'Zonemgr' unknown or not running
...
> quit
I then edited file bind10-nsb2.conf as follows, adding "config commit" as the second line:
execute init_authoritative_server
config commit
<several additional configuration commands for Xfrin and Zonemgr>
config remove Boss/components b10-xfrout
This still didn't work:
root at nsb2:~# bindctl
["login success "] login as root
> execute file bind10-nsb2.conf
adding Authoritative server component
adding Xfrin component
adding Xfrout component
adding Zone Manager component
Components added. Please enter "config commit" to
finalize initial setup and run the components.
Error: Module 'Xfrin' unknown or not running
...
Error: Module 'Zonemgr' unknown or not running
...
Error: b10-xfrout not found in named_set /Boss/components
Depending on the contents of the script, and which
commands it has called, there can be committed and
local changes. It is advised to check your settings,
and revert local changes with "config revert".
>
Executing "config revert" and "config show all" after this displayed the configuration that would be expected from "execute init_authoritative_server". My guess is that bindctl is trying to set up the configuration for the newly added modules before they have been properly initialized. The configuration does work if I remove "execute init_authoritative_server" and "config commit" from the file bind10-nsb2.conf and manually enter everything:
# bindctl
["login success "] login as root
> execute init_authoritative_server
adding Authoritative server component
adding Xfrin component
adding Xfrout component
adding Zone Manager component
Components added. Please enter "config commit" to
finalize initial setup and run the components.
> config commit
> execute file bind10-nsb2.conf
> quit
It would be a nice addition to the execute command functionality if the embedded "execute init_authoritative_server" could be made to work properly. Perhaps what is needed is a "wait" command, for example "wait Xfrin 5", which would wait for the Xfrin module to be up and running with a 5-second timeout. Exceeding the timeout would cause an error, and otherwise the configuration process would continue.
Jeffry A. Spain
Network Administrator
Cincinnati Country Day School
More information about the bind10-users
mailing list