OPNsense Forum

English Forums => 25.7 Series => Topic started by: lmester on September 19, 2025, 09:08:13 PM

Title: Accessing internal web server by name
Post by: lmester on September 19, 2025, 09:08:13 PM
While attempting to upgrade to V25.7 my system was corrupted by the Intel N100 file system corruption problem.

Because of this I had to do a new install and was unable to retain my existing configuration.

I now have everything working except local access to my web server.

I have a web server running on my local network. I have port forwards so that it is accessible from the web.

I can now only access the web server mesterhome.com from an external network. Local access to mesterhome.com is now resolving the default gateway 192.168.1.1 instead of the web server local address 192.168.1.149. I know I had to do some extra configuration to allow local dns lookups to resolve the proper hostname. It's been several yeard ago when I set up OPNsense. I don't remember what was needed to be done to allow local access to the server. I've tried some tutorials here but have been unable to get them to work.

This did not work for me:

https://forum.opnsense.org/index.php?topic=6155.0

I then tried to configure a host override in unbound DNS. How do I enter the host override in the dropdown box? I tried entering mesterhome and get "No results matched mesterhome" It seems that I don't understand what should be placed in the host override box.

(https://mesterhome.com/PubFiles/unbound.png)

Can someone help me to get a host override or some other method working to have local access to my server?
Title: Re: Accessing internal web server by name
Post by: viragomann on September 22, 2025, 03:20:01 PM
The screenshot shows, you're trying to add a host override Alias.
This is meant to add an aliases to an existing host overrides (using the same IP). But I guess, you actually haven't any.

You have to click the upper "+" at "Hosts" to add a host override for your domain.
Title: Re: Accessing internal web server by name
Post by: meyergru on September 22, 2025, 03:44:23 PM
Also, you should find out why mesterhome.com resolves to the LAN IP of your OpnSense in the first place. It could be that "Services: Unbound DNS: General -> Do not register system A/AAAA records" ist unchecked. In that case, the system's name is registered in /etc/hosts for every interface.

I prefer to check that box and create one specific Unbound override for the firewall only.
Title: Re: Accessing internal web server by name
Post by: lmester on September 25, 2025, 05:29:49 AM
viragomann, meyergru

Thank you both. I now have local name resolution working properly.