Is there a packaging/bundling problem?
check_dns reports same version, but has different features, the OMD one looks like from 2008 while the RPM based one is from 2018
OMD 5.20:
/opt/omd/versions/default/lib/monitoring-plugins/check_dns -h
check_dns v2.3.3 (monitoring-plugins 2.3.3)
Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>
Copyright (c) 2000-2008 Monitoring Plugins Development Team
<devel@monitoring-plugins.org>
...
(missing option -q)
while from RPM nagios-plugins-dns-2.3.3-6.el8.x86_64:
/usr/lib64/nagios/plugins/check_dns -h
check_dns v2.3.3 (nagios-plugins 2.3.3)
Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>
Copyright (c) 2000-2018 Nagios Plugin Development Team
...
-q, --querytype=TYPE
Optional DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY)
The default query type is 'A' (IPv4 host entry)
BIND 9.11.x onwards supports both 'A' and 'AAAA', if you want both use 'ANY'
...