NAME

Monitoring::Sneck::Checks::resolv - checks /etc/resolv.conf and its nameservers

VERSION

Version 0.0.1

SYNOPSIS

resolv|perl:resolv
resolv_works|perl:resolv -q www.example.org

DESCRIPTION

Reads resolv.conf. Lines it does not understand, keywords with nothing after them, nameservers that are not IPs, bad domain or search domains, no nameservers, or more than the C library uses, 3, are WARNING. Not being able to read it is CRITICAL.

With --query, each nameserver is asked for it through Net::DNS. Any answer counts, NXDOMAIN included, as the server answered. None answering is CRITICAL, some not answering is WARNING.

OPTIONS

- -f, --file :: The file. Default :: /etc/resolv.conf

- -q, --query :: A name to ask each nameserver for.

METHODS

check

Does the check.