NAME
Monitoring::Sneck::Checks::dns - checks a DNS lookup
VERSION
Version 0.0.1
SYNOPSIS
dns_www|perl:dns -H www.example.org -a 192.0.2.10
dns_auth|perl:dns -H example.org -q SOA -s 192.0.2.53 -A -w 0.5 -c 1
dns_mx|perl:dns -H example.org -q MX -a '10 mail.example.org'
dmarc|perl:dns -H _dmarc.example.org -q TXT -r '^"v=DMARC1; p=(quarantine|reject)'
DESCRIPTION
Looks up a name through Net::DNS. No reply, a error such as NXDOMAIN, or no records of the type is CRITICAL, as is a expected answer missing.
OPTIONS
- -H, --hostname :: The name to look up. Required.
- -q, --type :: The record type. ANY takes whatever records come back, each said with its type, though many servers answer ANY with only a HINFO record, as RFC 8482 lets them. Default :: A
- -s, --server :: A server to ask. May be given more than once. The system's if not given.
- -a, --expect :: A answer that must be there, as the record data, such as 192.0.2.10 or "10 mail.example.org". May be given more than once.
- -r, --regex :: A regex some answer must match, as the record data, such as '^"v=spf1 ' for a TXT record. May be given more than once, each needing a match.
- -A, --authoritative :: The answer must be authoritative.
- --tcp :: Ask over TCP.
- -w, --warning :: Range of seconds for the lookup.
- -c, --critical :: Range of seconds for the lookup.
METHODS
check
Does the check.