reference localhost
We use the local host as a reference for the domains in question.
--- a/plugins/check_dns-serial Tue Dec 30 00:46:41 2014 +0100
+++ b/plugins/check_dns-serial Tue Dec 30 09:42:07 2014 +0100
@@ -1,4 +1,22 @@
#! /usr/bin/perl
+# © 2014 Heiko Schlittermann <hs@schlittermann.de>
+=head1 NAME
+
+ check_dns-serial - check the dns serial number from multiple sources
+
+=head1 SYNOPSIS
+
+ check_dns-serial [options] DOMAINS
+
+=head1 DESCRIPTION
+
+B<check_dns-serial> is designed as a Icinga/Nagios plugin to verify that
+all responsible NS have the same serial number for their zones.
+
+Domains we are not responsible for are marked as B<critical>.
+
+=cut
+
use 5.014;
use strict;
use warnings;
@@ -77,7 +95,7 @@
sub main {
my @argv = @_;
- my $opt_reference = '212.80.235.130';
+ my $opt_reference = '127.0.0.1';
my $opt_progress = -t;
GetOptionsFromArray(
@@ -127,21 +145,13 @@
__END__
-=head1 NAME
-
- check_dns-serial - check the dns serial number from multiple sources
-
-=head1 SYNOPSIS
-
- check_dns-serial [options] DOMAINS
-
=head1 OPTIONS
=over
=item B<--reference>=I<address>
-The address of the reference server for our own domains (default: 212.80.235.130)
+The address of the reference server for our own domains (default: 127.0.0.1)
=item B<--progress>