It’s working fine with 2024-04
f87b47a44e88:/# /usr/lib/nagios/plugins/check_dns -H stackoverflow.com
DNS OK: 0.024 seconds response time. stackoverflow.com returns 104.18.32.7,172.64.155.249|time=0.024036s;;;0.000000
What’s the output if you use dig from inside the container? Should look like this:
f87b47a44e88:/# dig @127.0.0.11 stackoverflow.com
; <<>> DiG 9.18.19 <<>> @127.0.0.11 stackoverflow.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47677
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;stackoverflow.com. IN A
;; ANSWER SECTION:
stackoverflow.com. 241 IN A 104.18.32.7
stackoverflow.com. 241 IN A 172.64.155.249
;; Query time: 1 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Wed Apr 17 09:55:57 CEST 2024
;; MSG SIZE rcvd: 78