Matthew Horsfall (alh) > Net-RNDC-0.002 > rndc.pl

Download:
Net-RNDC-0.002.tar.gz

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Net-RNDC-0.003

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.

syntax highlighting: