Having problems understand/implementing LOCAL DNS.

Started by fbeye, March 29, 2023, 03:05:11 AM

Previous topic - Next topic
Hello!

So I have latest OPNSense, Aguard (plugin) and Unbound DNS all enabled and works like a charm.
What I am trying to set up though is LOCAL DNS.
When I was using PiHole +Swag, my LOCAL DNS would work fine, if the internet went down I could still connect (so I know it was working correctly) but I notice that ALL my SWAG .confs are available via Internet, so I wanted to REMOVE SWAG and just make my hosts available LOCALLY ONLY for when I connect through VPN (via Wireguard plugin).

I guess I am confused... The Adguard Plugin / page config... Would I do this via DNS REWRITE? Or would it be on Opnsense under Unbound DNS?
I did some on DNS REWRITE and it seemed to not work.... When I was using Pihole/SWAG I would have  x.duckdns.org to 192.168.5.181 and SWAG would Port redirect... Am I still needing SWAG? I mean, how would Adguard know what Port I wanted?
Sorry I know this sounds ignorant.. I really have been trying to google.