Add support for drill tool to check_dig (#1218)

Alexander Wittig notifications at github.com
Thu Jan 23 23:28:14 CET 2014


That's correct, it was a first version I submitted to the port maintainer. However, just removing the "-t" does not work with "advanced" settings, e.g. when the transport type (-4 and -6) or user supplied extra options are specified. Then drill is called as e.g. "drill @127.0.0.1 -p 53 google.com A -4", with the -4 attached at the end. While apparently OK with dig, for drill that does not work (see below). Reordering the arguments to have all possibly specified options given first followed by the server, domain, and query type (e.g. "drill -4 -p 53 @127.0.0.1 google.com A") works for both as stated above.
If you prefer I will submit this new patch to the FreeBSD maintainer again, but I think it should be fixed upstream as this is not a FreeBSD specific issue.

```
%drill @127.0.0.1 -p 53 google.com A -4
;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 3495
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 
;; QUESTION SECTION:
;; -4.	IN	A

;; ANSWER SECTION:

;; AUTHORITY SECTION:
.	1237	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2014012301 1800 900 604800 86400

;; ADDITIONAL SECTION:

;; Query time: 0 msec
;; SERVER: 127.0.0.1
;; WHEN: Thu Jan 23 23:17:28 2014
;; MSG SIZE  rcvd: 95
```

---
Reply to this email directly or view it on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1218#issuecomment-33176435
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140123/a1813a87/attachment.html>


More information about the Devel mailing list