How to Resolve Local Client Names with opnSense

Started by rmoggia, December 02, 2024, 04:38:17 PM

Previous topic - Next topic
Good morning everyone. As you can tell from the object, I have a basic need. Allow each computer on the network to resolve the names of the other computers on the LAN. I have read several articles, but honestly I am confused about the right path to follow. Can someone direct me? Thank you

If you want it to be predictable, the usual practice would be to use DHCP reservations for your important hosts, and configure OPNsense to register those reservations with the Unbound DNS service, then you can use names like "mypc.localdomain" (or whatever you choose "localdomain" to be  - "lan" is fairly common). Dynamic DHCP leases can be registered with Unbound too, but you're dependent on the client requesting a meaningful hostname....

You can start with Services > Unbound DNS > General : Register ISC DHCP4 Leases
You might need to adjust your devices host names (OS dependent).

If the outcome does not meet your expectations, you can add host overrides:
Services > Unbound DNS > Overrides.
The DHCP dynamic assignments might be stable enough. If they aren't, there's always reservations.

Thanks for the answers. I will follow your suggestions