I have AdGuard installed and configured within Home Assistant. I'm trying to get AdGuard to resolve my public DNS record (homeassistant.SOMEWHERE.com) to my internal Home Assistant instance.
Previously, when UniFi was handling DNS, this worked because I had a local DNS alias configured for homeassistant.SOMEWHERE.com. Since switching DNS over to AdGuard and creating a DNS rewrite that points the hostname to my internal IP, clients are no longer able to resolve or route to it internally.
What am I missing or what additional configuration is required to make this work?
It's a personal opinion, but I would suggest not installing one of these DNS redirectors without curating my own list of what is acceptable and what is not and unless I understood completely what it is doing to me and who is deciding what I am able to see. (In other words, I don't suggest using them).
This doesn't help you much, but I don't think they help you much either.
I use AdGuard and a DNS rewrite for this purpose, but my rewrite rule sends *.mydomain.net to my reverse proxy’s internal IP address, and that is where the subdomain and the port forwarding get handled.
If you don’t run a reverse proxy, I’m not sure how this would work. You might have to type homeassistant.mydomain.net:8123 in your browser since the rewrite won’t affect ports.