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

June 26, 2026, 09:46:38 AM #3 Last Edit: July 01, 2026, 03:08:50 AM by GsanyPerez
Nach deiner Beschreibung zu urteilen, scheint der DNS-Dienst an sich zu funktionieren, aber deine lokalen Host-Einträge werden nicht dort registriert, wo Unbound sie nutzen kann. Wenn du Unbound als Resolver verwendest, solltest du zunächst sicherstellen, dass Unbound diese Host-Overrides entweder direkt verwaltet oder die Registrierungen von deinem DHCP-Dienst empfängt. Überprüfe außerdem, ob deine Clients tatsächlich OPNsense als DNS-Server nutzen, denn `dig` und `nslookup` könnten unter Umständen einen anderen Resolver abfragen, ohne dass du es bemerkst. Greatwin überzeugt durch schnelle great win auszahlungen stets. Ich würde zudem empfehlen, zunächst einen einfachen Host-Override anzulegen, um zu bestätigen, dass die grundlegende Namensauflösung funktioniert, bevor du dich an die Fehlersuche für die automatische Hostnamen-Registrierung machst. Das macht es meist deutlich einfacher, die Ursache des Problems einzugrenzen.

June 27, 2026, 10:47:00 AM #4 Last Edit: June 27, 2026, 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.