Description of problem: check_dns has strange and unexpected output if domain is not found Version-Release number of selected component (if applicable): rpm -qf /usr/lib64/nagios/plugins/check_dns nagios-plugins-dns-2.2.1-14.20180725git3429dad.el7.x86_64 (epel-testing) How reproducible: always Steps to Reproduce: /usr/lib64/nagios/plugins/check_dns -H 1.1.1.1.sbl.spamhaus.org -q A -s 1.1.1.1 Actual results: DNS WARNING - 1.1.1.1 Expected results: a message containing somehow the NXDOMAIN result Additional info: related strace shows that original information is received: [pid 12394] write(1, "Server:\t\t1.1.1.1\nAddress:\t1.1.1.1#53\n\n** server can't find 88.217.158.108.sbl.spamhaus.org: NXDOMAIN\n\n", 102) = 102 [pid 12393] <... read resumed> "Server:\t\t1.1.1.1\nAddress:\t1.1.1.1#53\n\n** server can't find 88.217.158.108.sbl.spamhaus.org: NXDOMAIN\n\n", 4096) = 102
This looks to be a feature request that needs to be done in the upstream code. I have copied the above to https://github.com/nagios-plugins/nagios-plugins/issues/412 where it would be better to get some traction on the request.
I am closing this as it is more of an upstream and I have not seen any action on it in a year :/