OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: bbergen on October 30, 2024, 03:16:06 PM

Title: Changing Hostname for dynamic ip address devices
Post by: bbergen on October 30, 2024, 03:16:06 PM
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.
Title: Re: Changing Hostname for dynamic ip address devices
Post by: viragomann on October 30, 2024, 03:44:50 PM
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.
Title: Re: Changing Hostname for dynamic ip address devices
Post by: bbergen on October 30, 2024, 04:02:22 PM
Yes, I do have "Register DHCP Static Mappings" checked (and Applied).
Title: Re: Changing Hostname for dynamic ip address devices
Post by: bbergen on October 30, 2024, 04:03:11 PM
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
Title: Re: Changing Hostname for dynamic ip address devices
Post by: dseven on October 30, 2024, 06:11:07 PM
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?