The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.