Hello @Megagolgoth similar issue here, started yesterday.
I was working around a setup with kerberos and samba, which implies adding some records.
To be clear, my setup is unbound for overall resolution and dnsmasq for dhcp and local domain resolution.
As per my setup, under the unbound setup, on the dhcp section, I have configured the dnsmasq and the local domain. No changes here from long time ago.
This was working fine for a while.
If I restart unbound, the resolution for the local domain is working fine for few minutes and then it stops.
Query to unbound
root@OpenWrt:/etc/krb5kdc# dig pichisrv1-dev.pichilandia.lan @127.0.0.1 -p53
; <<>> DiG 9.18.24 <<>> pichisrv1-dev.pichilandia.lan @127.0.0.1 -p53
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9791
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pichisrv1-dev.pichilandia.lan. IN A
;; AUTHORITY SECTION:
. 83992 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2025041801 1800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Fri Apr 18 22:44:17 IST 2025
;; MSG SIZE rcvd: 133
Query to the dnsmasq
root@OpenWrt:/etc/krb5kdc# dig pichisrv1-dev.pichilandia.lan @127.0.0.1 -p5353
; <<>> DiG 9.18.24 <<>> pichisrv1-dev.pichilandia.lan @127.0.0.1 -p5353
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18032
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pichisrv1-dev.pichilandia.lan. IN A
;; ANSWER SECTION:
pichisrv1-dev.pichilandia.lan. 0 IN A 192.168.14.231
;; Query time: 0 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1) (UDP)
;; WHEN: Fri Apr 18 22:44:20 IST 2025
;; MSG SIZE rcvd: 74
But, if I restart unbound... it works for a while.
root@OpenWrt:/etc/krb5kdc# /etc/init.d/unbound restart
9136
root@OpenWrt:/etc/krb5kdc# dig pichisrv1-dev.pichilandia.lan @127.0.0.1 -p53
; <<>> DiG 9.18.24 <<>> pichisrv1-dev.pichilandia.lan @127.0.0.1 -p53
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12049
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pichisrv1-dev.pichilandia.lan. IN A
;; ANSWER SECTION:
pichisrv1-dev.pichilandia.lan. 300 IN A 192.168.14.231
;; Query time: 4300 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Fri Apr 18 22:48:28 IST 2025
;; MSG SIZE rcvd: 74