Nslookup name resolution to local IP fails with SERVFAIL

I have my own domain with the following records:

@ 1800 IN A 1.2.3.4
beaver 1800 IN A 192.168.1.100
www 1800 IN CNAME mydomain.com.

nslookup www.mydomain.com works like a charm
nslookup beaver.mydomain.com returns

Server: 127.0.0.53
Address: 127.0.0.53#53

** server can’t find beaver.mydomain.com: SERVFAIL

dig @8.8.8.8 beaver.mydomain.com returns
;; ANSWER SECTION:
beaver.mydomaion.com. 1800 IN A 192.168.1.100

How can I fix the local resolver in LuCi? What settings?

Tx

By any chance, could you be forwarding to cz.nic public resolvers? Those intentionally block local IPs.

dig @213.46.172.36 beaver.mydomain.com

;; ANSWER SECTION:
beaver.mydomain.com. 1800 IN A 192.168.1.100

And why is that relevant? EDIT: to be clear, that IP address is not from cz.nic, so I can’t see how it’s related to the discussion thread.

Indeed it’s cz.nic’s rebind protection:

dig @185.43.135.1 beaver.mydomain.com
;; QUESTION SECTION:
;beaver.mydomain.com. IN A

;; ADDITIONAL SECTION:
explanation.invalid. 10800 IN TXT “blocked by DNS rebinding protection”