Page 1 of 1
Reverse DNS stopped working after upgrade to 5.7
Posted: Wed Jun 10, 2020 5:30 pm
by damindd
We have a few reverse DNS services that quit working after upgrading to 5.7.
The check command is check_xi_service_dnsquery
The Command View is $user1$/check_dns -H 10.0.0.2 -a 'name = dnsname.com.' -s dnsserver_IP
Did something change with check_xi_service_dnsquery requiring a different format?
Thanks.
Re: Reverse DNS stopped working after upgrade to 5.7
Posted: Wed Jun 10, 2020 6:37 pm
by damindd
Additional info:
check_dns v2.3.3 (nagios-plugins 2.3.3)
bind-export-libs.x86_64 32:9.11.4-16.P2.el7_8.6
bind-libs.x86_64 32:9.11.4-16.P2.el7_8.6
bind-libs-lite.x86_64 32:9.11.4-16.P2.el7_8.6
bind-license.noarch 32:9.11.4-16.P2.el7_8.6
bind-utils.x86_64 32:9.11.4-16.P2.el7_8.6
Results from manual run:
[root@nagiosxi /]# /usr/local/nagios/libexec/check_dns -H 10.0.0.2 -a 'name = server1.domain.com.' -s 10.0.0.5
DNS CRITICAL - expected 'name = server1.domain.com.' but got ''
Re: Reverse DNS stopped working after upgrade to 5.7
Posted: Thu Jun 11, 2020 3:36 pm
by benjaminsmith
Hi
@damindd,
It looks there was a minor syntax change in the latest version of the plugin. Try adjusting your check command as follows and let me know if that works on your system ( remove the
name = from the expected address and add the
-q any option to the command string).
Code: Select all
check_dns -H 10.0.0.2 -a 'server1.domain.com.' -s 10.0.0.5 -q any
Re: Reverse DNS stopped working after upgrade to 5.7
Posted: Mon Jun 22, 2020 12:31 pm
by damindd
Thank you for the solution. It works perfectly.
Re: Reverse DNS stopped working after upgrade to 5.7
Posted: Mon Jun 22, 2020 12:42 pm
by benjaminsmith
Thank you for the solution. It works perfectly.
Excellent! Thanks for the feedback.