You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue does not seem check_dns version related, but related to the underlying nslookup and the fact that the newer one exits with other exit codes besides 0.
version part of bind-utils-9.8.2:
system1~]# /usr/bin/nslookup -sil XXX.google 127.0.0.1; echo $?
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find XXX.google.com: NXDOMAIN
1
part of bind-utils-9.3.6:
system2~]# /usr/bin/nslookup -sil XXX.google.com 127.0.0.1; echo $?
Server: 127.0.0.1
Address: 127.0.0.1#53
This was opened in Red Hat Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1620274 but looks better suited for an upstream bug
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
The text was updated successfully, but these errors were encountered: