Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    I want a static DHCP lease with a dynamic hostname

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 584 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      carriage
      last edited by

      OpenWRT has a feature that I'd like to mimic on pfSense, which is the ability to dynamically allocate hostnames to static DHCP mappings that lack a predefined hostname. Granted, I suspect this is less of a feature and more of a byproduct of the way the different OpenWRT services interact.

      I've often found this useful when testing stuff on bare metal: in effect, I was able to have a static IP without touching the host config (due to the DHCP mapping) and still be able to resolve the hostname to that static IP. Then, whenever the hostname changed – which could be often – the new hostname would resolve to the same static IP.

      Unfortunately, it seems that if I do a static DHCP mapping in pfSense and leave the hostname field blank, the hostname the host sends in the DHCP request is ignored. I've got the static IP, yes, but not the dynamic hostname.

      I'm wondering if there's a reasonable way to achieve this behaviour with pfSense?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.