Changing Hostname for dynamic ip address devices

Started by bbergen, October 30, 2024, 03:16:06 PM

Previous topic - Next topic
New to OPNsense and loving it. Created static ip addresses for my Proxmox LXCs, NAS drives and printers and gave them "friendly" Hostnames.
Is there a way to do that with dynamic ip address devices that show up in Services>ISC DHCPv4>Leases?
Changing the Hostname on the actual devices is not possible on some of my devices.
I tried setting a static reservation with MAC address/new Hostname and leaving the IP address blank hoping that the dynamic ip address would populate the lease entry but the IP address remains blank and I end up with two entries for that device, one with the dynamic ip address/original Hostname and the one I created.
Even just adding a Description to the dynamic ip address entries would be helpful.
Any help or direction would be greatly appreciated.

Presuming you're using Unbound for DNS, did you enable "Register DHCP Static Mappings" in its geneural settings?
I don't know, however, it this even works with a blank IP reservation, but it does, if you state an IP in ISC DHCP.

October 30, 2024, 04:02:22 PM #2 Last Edit: October 30, 2024, 05:00:32 PM by bbergen
Yes, I do have "Register DHCP Static Mappings" checked (and Applied).

October 30, 2024, 04:03:11 PM #3 Last Edit: October 30, 2024, 05:00:17 PM by bbergen
Quote from: bbergen on October 30, 2024, 04:02:22 PM
Yes, I do have "Register DHCP Static Mappings" checked (and Applied).
And am using Unbound

Probably most of us use reservations with assigned IP addresses. The only reasons I can think of not to are that it takes a little bit more effort to manage the assignment manually, or maybe shortage of IP space? I'd assume that devices you want to access by name would be on a lot of the time, so there's probably not much saving in IP space by using a dynamic address pool for them?