rndc.pl - Example rndc script for communicating with BIND.
./rndc.pl <key> <host> <command>
./rndc.pl aabc localhost status
This example script shows usage of Net::DNS. It requires the rndc key for communicating with BIND, the hostname of the BIND to communicate with, and the command in question.
On success it outputs the response from BIND, otherwise an error prefixed with "Error: ".
Matthew Horsfall (alh) <WolfSage@gmail.com>
You may distribute this code under the same terms as Perl itself.