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

    Set hostname on DHCP client without adding static mapping?

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 4 Posters 459 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.
    • N
      no_jah
      last edited by

      Is it possible to set hostname on DHCP clients without adding static mappings?

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        How would you propose doing that? Host names point to IP addresses. If you don't have a static mapping, you don't have a consistent address to point to.

        The only thing I can think of is DHCP option 12, where the client provides it's own host name. However, I have never tried that.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        N 1 Reply Last reply Reply Quote 0
        • N
          no_jah @JKnott
          last edited by

          @JKnott

          Wouldn't it be possible to pair the hostname with the MAC-adress?

          JKnottJ GertjanG 2 Replies Last reply Reply Quote 0
          • GrimsonG
            Grimson Banned
            last edited by

            https://forum.netgate.com/topic/141647/dhcp-not-registering-hostnames-in-dns

            1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @no_jah
              last edited by

              @no_jah said in Set hostname on DHCP client without adding static mapping?:

              @JKnott

              Wouldn't it be possible to pair the hostname with the MAC-adress?

              That's not the way DHCP works.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @no_jah
                last edited by

                @no_jah said in Set hostname on DHCP client without adding static mapping?:

                @JKnott

                Wouldn't it be possible to pair the hostname with the MAC-adress?

                Yes !
                Answer You need DHCP static mappings - or a host override, which "hard locks" a host to an IP.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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