Skip to content

Checks RRSIG Records for their expiry date and returns how much days that are from now to the expiry date.

Notifications You must be signed in to change notification settings

datenknoten/check-rrsig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-rrsig

Introduction

check-rrsig is a tool for checking the expiry time of RRSIG resource records for DNSSEC. I use it to monitor my domains via zabbix. It expects one parameter the hostname to check. It will determine the nameserver responsible for the domain and then directly query the nameserver to bypass caches of your recurive resolver. Finaly the script will check the expiry date of the first RRSIG record it can get and will print days from now till expiry date. If no RRSIG record is present nothing will returned beside the return code 3.

Usage

Usage: check-rrsig.php [options] <hostname>
Options:
  -r, --resolver <arg>    Use a custom resolver and not the one from /etc/resolv.conf.
  -d, --debug             Print debuging messages to tackle your problems.
  -h, --help              Print this help.

Install

You can get the latest build of check-rrsig from my build server:

https://buildserver.datenknoten.me/job/check-rrsig/lastSuccessfulBuild/artifact/build/check-rrsig.phar

This File has all the depedencies you need. You only need to install the php interpreter, on debian this would be php5-cli. Drop the binary in /usr/local/bin and just use it.

Building

If you want to make some edits or dont trust me, you can build check-rrsig relativly easy.

First you need to install the dependencies:

Then you can do the following steps

Then you have a check-rrsig.phar in the build directory.

About

Checks RRSIG Records for their expiry date and returns how much days that are from now to the expiry date.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages