rndc.pl - Example rndc script for communicating with BIND.
Usage:
./rndc.pl <key> <host> <command>
IE:
./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.
To install Net::RNDC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::RNDC
CPAN shell
perl -MCPAN -e shell install Net::RNDC
For more information on module installation, please visit the detailed CPAN module installation guide.