OPNsense Forum

English Forums => General Discussion => Topic started by: Zman350x on March 08, 2023, 06:13:30 PM

Title: DNS to local address
Post by: Zman350x on March 08, 2023, 06:13:30 PM
For starters, I am relatively new to networking, so I'm hoping this should be a very simple problem.

My OPNsense dashboard is accessible on LAN @ 10.10.10.1, and my wireless AP settings at 10.10.10.2. While this isn't critical, I'd be a nice QoL if I could set "http://my-local-opnsense.net/" or something like that to take me to 10.10.10.1. (and, of course, I could set up more meaningful addresses in the future aside from "shortcuts" to the dashboards)

I'm trying to use a domain override in UnboundDNS via OPNsense, but can't get it working. Anyone know how to do it? I've tried it couple different ways, including host overrides, but no luck.

I've also tried things like this: https://forum.opnsense.org/index.php?topic=9245.0

Any help is much appreciated.
Thanks,
-Zman
Title: Re: DNS to local address
Post by: EdwinKM on March 08, 2023, 08:16:09 PM
note, your example is a external domain, like : forum.opnsense.org. So it tries to resolve on the internet (gateway).
Is a private domain also an option? like "opnsense.local"  or "opnsense.lan"?

In the other case i think you also have to take a look at  "reflection". (https://docs.opnsense.org/manual/nat.html)