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

Register custom hostname by MAC address

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 545 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.
  • S
    sdugoten
    last edited by sdugoten Mar 5, 2023, 5:36 PM Mar 5, 2023, 5:34 PM

    Here is the issues, I have like 40+ light switches and 30+ IoT devices connected to the LAN. However, none of those provide their hostname. So, I just see a bunch of IP address which I have no clue what they are.

    Now, I do not want to use static IP for each of these IoT devices just because I need to give them a hostname. I still want them to get the IP address from the DHCP pool. I did some google search and found out that the DNS forwarder custom fields can add something like below would map the mac address to the hostname. (This is a setting use by Dnsmasq actually)

    dhcp-host=11:22:33:44:55:66,your_custom_host_name

    Problem is, it doesn't seems like the DNS forwarder (Dnsmasq) is reading the custom config. I wonder if there is any easy way to assign a hostname by MAC address for these IoT devices? Thanks.

    J 1 Reply Last reply Mar 5, 2023, 6:05 PM Reply Quote 0
    • J
      JKnott @sdugoten
      last edited by Mar 5, 2023, 6:05 PM

      @sdugoten

      You don't have to use a static address. You use static mappings. This means the devices still use DHCP, but the address won't change. While you're setting up the mapping, you can also assign a host name.

      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...

      S 1 Reply Last reply Mar 5, 2023, 8:01 PM Reply Quote 0
      • S
        sdugoten @JKnott
        last edited by Mar 5, 2023, 8:01 PM

        @jknott said in Register custom hostname by MAC address:

        @sdugoten

        You don't have to use a static address. You use static mappings. This means the devices still use DHCP, but the address won't change. While you're setting up the mapping, you can also assign a host name.

        @JKnott
        Could you please point me to which screen that would do the static mapping? Thanks.

        J 1 Reply Last reply Mar 6, 2023, 2:04 AM Reply Quote 0
        • J
          JKnott @sdugoten
          last edited by Mar 6, 2023, 2:04 AM

          @sdugoten said in Register custom hostname by MAC address:

          Could you please point me to which screen that would do the static mapping? Thanks.

          Bottom of the DHCP server page.

          22781824-e8e8-47a2-a8b6-2d91a794a058-image.png

          Also, the easy way to make a static mapping is to connect the device and find it in Status / DHCP leases and convert it to static mapping, to add the desired address and host name.

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received