Hostnames not resolving

Started by jssmithdev81, June 26, 2026, 04:11:28 AM

Previous topic - Next topic
Hi there

Just installed OPNSense and must say I love this!

But having terrible problems say if I made a host with myhostname.mydomain.net and it has an ip address of 192.168.1.2 for arguments sake, but how would I get that resolving so if I were to run a web server for example it'd resolve to that IP address when typing that into the address of a browser?

I was formerly running on PFsense but using the old legacy DHCP Kea thing think its called.

I'd love to know how to get this working as I'm really not sure what I'm doing wrong, think have all the registering hostnames checked in the configs but it wont do that if I use the dig command or nslookup in windows.

Can someone help me please?

Thanks ever so much.

If you are using the default Unbound DNS service, set it here "Services -> Unbound DNS -> Overrides"
Every morning, I wake up and check the Forbes list first. If I'm not on it, I go to work.

Assuming (since it's a new installation) that you're using dnsmasq for DHCP and Unbound for the DNS resolver, I think you need to configure query forwarding for your internal domain(s) as described at https://docs.opnsense.org/manual/dnsmasq.html#dhcpv4-with-dns-registration

From what you've described, it sounds like the DNS service itself is working, but your local host records aren't actually being registered where Unbound can use them. If you're using Unbound as the resolver, I'd first make sure it's either managing those host overrides directly or receiving registrations from your DHCP service. Also double-check that your clients are actually using OPNsense as their DNS server, because `dig` and `nslookup` can end up querying a different resolver without you noticing. I'd also try creating a simple host override first to confirm basic resolution works before troubleshooting automatic hostname registration. That usually makes it much easier to narrow down where the problem is.

Today at 10:47:00 AM #4 Last Edit: Today at 10:58:33 AM by jssmithdev81
Ahh I know what I've done I didnt enter them in the A records bit, thanks its all working now lol.
Ever so sorry my brain mustn't have been working then obviously.

Thanks ever so much for all your help.