The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

rndc.pl - Example rndc script for communicating with BIND.

SYNOPSIS

Usage:

  ./rndc.pl <key> <host> <command>

IE:

  ./rndc.pl aabc localhost status

DESCRIPTION

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: ".

AUTHOR

Matthew Horsfall (alh) <WolfSage@gmail.com>

LICENSE

You may distribute this code under the same terms as Perl itself.