Created attachment 151623 [details] patch With IPv6 queries the flags are put in out of order which prevent drill from ever returning: # /usr/local/libexec/nagios/check_dig -6 -H ::1 -T AAAA -l ns4.example.com -a ::2 -v /usr/bin/drill @::1 -z -p 53 ns4.example.com AAAA -6 Looking for: '::2' CRITICAL - Plugin timed out while executing system call # The patch fixes the flags to be before the query: # /usr/local/libexec/nagios/check_dig -6 -H ::2 -T AAAA -l ns4.liquidneon.com -a ::2 -v /usr/bin/drill @::2 -z -p 53 -6 ns4.example.com AAAA Looking for: '2607:fc50:1000:8000::2' ;; ANSWER SECTION: ns4.example.com. 3600 IN AAAA ::2 DNS OK - 0.070 seconds response time (ns4.exampe.com. 3600 IN AAAA ::2)|time=0.069712s;;;0.000000 #
Auto-assigned to maintainer mat@FreeBSD.org
Note this only affects when running check_dig with the -6 argument.
A commit references this bug: Author: mat Date: Mon Jan 19 17:52:58 UTC 2015 New revision: 377447 URL: https://svnweb.freebsd.org/changeset/ports/377447 Log: Fix check_dig on > 10 with IPv6 PR: 196725 Submitted by: brd Sponsored by: Absolight Changes: head/net-mgmt/monitoring-plugins/Makefile head/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff