The DNS server that my HA uses seems to keep resetting. I want HA to use my router for DNS but it seems to try to use another DNS server. Based on https://community.home-assistant.io/t/how-to-change-dns-setting-in-hassio/194197 I’ve ran the command below, and it seems to stick for half an hour to a couple of days before the DNS requests start failing again.
~ $ nslookup google.com
Server: 172.30.32.3
Address: 172.30.32.3#53** server can’t find google.com: SERVFAIL
~ $ ha dns options --servers dns://192.168.1.1
Command completed successfully.
~ $ nslookup google.com
Server: 172.30.32.3
Address: 172.30.32.3#53Name: google.com
Address: 216.239.38.120
Name: google.com
Address: 2001:4860:4802:32::78
My router has DNS hijacking on (though Adblock and DNS HTTPS Proxy) and uses DoH (though DNS HTTPS Proxy). How can I get this setting to stick so that I don’t have to keep setting the DNS server in HA?
I think I started having this issue when I installed DNS HTTPS Proxy to do DoH, though I believe I had DNS hijacking enabled on my router even before that.
Using a raspberry pi 4 with
OS Version: Home Assistant OS 7.2
Home Assistant Core: 2021.12.10
and I’ve got duckdns setup with letsencrypt and port forwarding to access HA outside my network.