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

How to change hostname of dynamic DNS

Scheduled Pinned Locked Moved General pfSense Questions
21 Posts 5 Posters 1.1k 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
    netboy
    last edited by Jan 26, 2025, 2:23 AM

    I am aware I can change a IP to static IP and in doing so can change the host name as well.

    My question is how to change a host name of a dynamic issue IP? I do not want to make the IP static just change the host name.

    P R 2 Replies Last reply Jan 26, 2025, 8:05 AM Reply Quote 0
    • P
      patient0 @netboy
      last edited by Jan 26, 2025, 8:05 AM

      @netboy you use a dynamic DNS service like noip, freedns and there you can change the name.

      But if you referring to a host that gets an IP from a DHCP server (which is not the same as dynamic DNS) then you can change the name of the host itself, on the host.

      Setting only the name for a host based on the MAC address in the DHCP server without an IP doesn't work.

      Thread
      https://forum.netgate.com/topic/141647/dhcp-not-registering-hostnames-in-dns
      ... is about exactly that.

      N 1 Reply Last reply Jan 26, 2025, 1:53 PM Reply Quote 0
      • N
        netboy @patient0
        last edited by Jan 26, 2025, 1:53 PM

        @patient0 said in How to change hostname of dynamic DNS:

        Setting only the name for a host based on the MAC address in the DHCP server without an IP doesn't work.

        Yeah I am not talking about static mapping but the DHCP lease that generates random IP to a MAC address. I would like to edit the host name and description of such random IP - From your post it looks like this cannot be done. If so, this feature will be useful.

        J 1 Reply Last reply Jan 26, 2025, 2:29 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @netboy
          last edited by Jan 26, 2025, 2:29 PM

          @netboy what are you wanting to change..

          So you have some client that gets a IP of your dhcp server pool on pfsense? And its host name is bob, and you want to change it to robert?

          I am not sure what your wanting to change exactly.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          N 1 Reply Last reply Jan 26, 2025, 2:32 PM Reply Quote 0
          • N
            netboy @johnpoz
            last edited by Jan 26, 2025, 2:32 PM

            @johnpoz said in How to change hostname of dynamic DNS:

            So you have some client that gets a IP of your dhcp server pool on pfsense? And its host name is bob, and you want to change it to robert?

            yes - that is correct.

            J 1 Reply Last reply Jan 26, 2025, 2:50 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @netboy
              last edited by Jan 26, 2025, 2:50 PM

              @netboy well why don't you just change its name to robert on the device? Or just create a static dhcp lease.. Clearly you want to resolve this device by name, just create a reservation with a name.. If you know you want to resolve this device by the name, why not just set its IP with a reservation as well? It takes all of 2 seconds extra put in the IP you want this mac to use.

              This is why its common practice to leave IPs out of the pool, normally some on the front end and the backend - so you can either set static IPs on the device, or via reservation outside the pool.

              All of my devices have reservations.. Any time I add a new device to my network that will be staying on the network I let it get an IP from the pool.. Then add a reservation for that mac - setting up the info I want for that reservation, the IP, the hostname.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              N 1 Reply Last reply Jan 26, 2025, 2:56 PM Reply Quote 0
              • N
                netboy @johnpoz
                last edited by Jan 26, 2025, 2:56 PM

                @johnpoz OK. Looks like I need to make all static and rename host accordinlgy.

                Right now I have the reservations as follows:
                0a346a17-0004-41aa-967e-5ba12e5b1773-image.png

                If I change the address pool
                from
                172.16.0.31 to 172.16.0.200
                To
                172.16.0.51 to 172.16.0.200

                Will the "existing" IP's in the range 172.16.0.31 to 172.16.0.50 "automatically" get reassigned with new IP?

                The above change will free up static ip from 172.16.0.31 to 172.16.0.50 which I use.

                J 1 Reply Last reply Jan 26, 2025, 3:18 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @netboy
                  last edited by johnpoz Jan 26, 2025, 3:20 PM Jan 26, 2025, 3:18 PM

                  @netboy if you change the pool, then yes the devices that had lease with say IP .40 would get a new lease.. But its not going happen instantly.. The client would need to release and renew.. Unless you kill off the old lease it would still be able to renew that .40 etc..

                  If for example this .40 IP you want to know get something in your new pool that starts at .50 - would be to make sure that device does a release of the lease, and then gets a new one. Or you make sure you remove the lease on pfsense, the client might still continue to use that .40 until the lease expires on the device and he does a new discover and gets an ip in the new .50 pool.. But he wouldn't be able to "renew" it because pfsense no longer has that lease to renew.

                  If your device that currently has .40 is one of the ones you want with a reservation of .40, it wouldn't really matter - just setup the reservation for the .40 mac and whatever name you want to call it.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Jan 26, 2025, 4:12 PM

                    Does the host not send the correct hostname?

                    N 1 Reply Last reply Jan 26, 2025, 4:35 PM Reply Quote 0
                    • N
                      netboy @stephenw10
                      last edited by Jan 26, 2025, 4:35 PM

                      @stephenw10 The host name does send but it is cryptic for example I have a kasa smartswitch and the host name that it sends is HS103. There is no way I can change the host name of kasa in their app!

                      J 1 Reply Last reply Jan 26, 2025, 5:02 PM Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Jan 26, 2025, 4:47 PM

                        You tried just adding a static mapping with no IP address set?

                        1 Reply Last reply Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @netboy
                          last edited by johnpoz Jan 26, 2025, 5:08 PM Jan 26, 2025, 5:02 PM

                          @netboy I have a bunch of iot devices, lightbulbs and even some of those Kasa HS switches (smart plug).. I just name them want I want when I set the reservation, but I also set a specific IP.

                          I have never actually tried to just set name and let the IP be in the pool - I personally just can't come up with a use case where that would make any sense to me. If I am going to go to the trouble of making a reservation, I just set the IP as well. Its an extra click to type in the IP you want.

                          But yeah those iot devices normally don't have a way to change the name - I think most of my lights all have a built in name of like iwp0 or something like that. And yeah the HS ones are all like HS103 or HS110, depending on the specific model you have.

                          I then in the reservation set their name to where they are like hall or island, or guestroom, chairlamp, etc.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jan 26, 2025, 5:04 PM

                            Mmm, switches should be static IMO. 😉

                            J 1 Reply Last reply Jan 26, 2025, 5:05 PM Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator @stephenw10
                              last edited by johnpoz Jan 26, 2025, 5:08 PM Jan 26, 2025, 5:05 PM

                              @stephenw10 not like a switch switch, a power on or off iot switch ;) yeah all my actual switches are static.

                              I really only use them during xmas when I setup xmas lights they are all plugged into those iot switches, so they all turn on at specific time or or I can just say alexa - christmas on ;) or off..

                              I have quite a few of these

                              https://www.kasasmart.com/us/products/smart-plugs/kasa-smart-wifi-plug-mini

                              Smart plug might be a better term to use than switch ;)

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                              1 Reply Last reply Reply Quote 1
                              • R
                                reberhar @netboy
                                last edited by reberhar Jan 27, 2025, 9:30 PM Jan 27, 2025, 9:18 PM

                                This post is deleted!
                                J 1 Reply Last reply Jan 27, 2025, 9:55 PM Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @reberhar
                                  last edited by Jan 27, 2025, 9:55 PM

                                  @reberhar you should prob read the thread.. He is not talking about ddns service(s).. He is talking about the name for a dhcp client.

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                  R 1 Reply Last reply Jan 27, 2025, 10:13 PM Reply Quote 0
                                  • R
                                    reberhar @johnpoz
                                    last edited by Jan 27, 2025, 10:13 PM

                                    @johnpoz Yup

                                    But this is the heading.

                                    How to change hostname of dynamic DNS

                                    I will delete the post however.

                                    J 1 Reply Last reply Jan 27, 2025, 10:16 PM Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @reberhar
                                      last edited by Jan 27, 2025, 10:16 PM

                                      @reberhar yeah true - took a while to get what he was actually after ;)

                                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                                      If you get confused: Listen to the Music Play
                                      Please don't Chat/PM me for help, unless mod related
                                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                      R 1 Reply Last reply Jan 27, 2025, 10:34 PM Reply Quote 1
                                      • R
                                        reberhar @johnpoz
                                        last edited by Jan 27, 2025, 10:34 PM

                                        @johnpoz Yeah sometimes they don't know. It is a challenge to write replies to these posts. I have tried a few.

                                        What seems obvious to us is not always easy for the inexperienced. I have had my days as well. "Oh ... I get it now"

                                        Thanks for your consistent support.

                                        Roy

                                        N 1 Reply Last reply Jan 27, 2025, 10:36 PM Reply Quote 1
                                        • N
                                          netboy @reberhar
                                          last edited by Jan 27, 2025, 10:36 PM

                                          @reberhar Maybe the heading should be named as
                                          "How to change hostname of non-static IP address"?

                                          I apologize for the confusion guys

                                          R 1 Reply Last reply Jan 28, 2025, 11:54 PM Reply Quote 0
                                          20 out of 21
                                          • First post
                                            20/21
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received