DNS check for NXDOMAIN

Hi,

is it possible to configure the check_dns plugin so that it verifies that no IP address is returned for the DNS query? (So, NXDOMAIN should be “OK”, any other result would be “CRIT”)

Use case: I’d like to check that none of our MTAs is listed on Spamhaus.

Thanks!

This extension package https://exchange.checkmk.com/p/netifaces comes with an agent plugin that collects all IP addresses from the host. The check plugin can then compare the addresses against a configurable list of RBLs.

2 Likes

Thank you, but it doesn’t seem to work: I get an Error in plugin file /omd/sites/main/local/share/check_mk/checks/netifaces: No module named ipaddr after installing it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.