I have just upgraded from Fedora 32 to Fedora 34 and am having an issue resolving a domain with a .local suffix:
$ dig mongodb-staging.staging.svc.cluster.local
; <<>> DiG 9.16.18-RH <<>> mongodb-staging.staging.svc.cluster.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 24723
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;mongodb-staging.staging.svc.cluster.local. IN A
;; Query time: 1 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Fri Jul 16 15:50:13 BST 2021
;; MSG SIZE rcvd: 70
But if I specify the dns server, it works:
$ dig @172.20.0.10 mongodb-staging.staging.svc.cluster.local
; <<>> DiG 9.16.18-RH <<>> @172.20.0.10 mongodb-staging.staging.svc.cluster.local
; (1 server found)
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43408
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 0f522d0868549f8f (echoed)
;; QUESTION SECTION:
;mongodb-staging.staging.svc.cluster.local. IN A
;; ANSWER SECTION:
mongodb-staging.staging.svc.cluster.local. 5 IN A 172.20.17.157
;; Query time: 22 msec
;; SERVER: 172.20.0.10#53(172.20.0.10)
;; WHEN: Fri Jul 16 15:49:21 BST 2021
;; MSG SIZE rcvd: 139
Any help with this is appreciated.