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

    DHCP custom set hostname are not resolving

    DHCP and DNS
    3
    15
    1.1k
    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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @CloudNode
      last edited by johnpoz

      @iptvcld said in DHCP custom set hostname are not resolving:

      hen that will break as the static set IP would not be in the same range.

      huh?? Why would you set it on the device.. Set the reservation in dhcp, now if on network A it gets IP address X, if it moves to network B set that reservation to give it IP address Y.. Which is on the B network, etc.

      Example I have my ipad so it always gets the same last octet on whatever wifi network its on.. Be it my roku network, or my psk network or my trusted network it auths with eap-tls, 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

      C 1 Reply Last reply Reply Quote 0
      • C
        CloudNode @johnpoz
        last edited by

        @johnpoz oh that makes sense.. and good tip for setting the last octet. So it looks like i still need to set the ip as well? I was hoping not to TBH., but if it is not possible then I have no choice.

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @CloudNode
          last edited by

          @iptvcld Not sure if not possible - to be honest have never tried it.. Since it makes no sense to me to ever do such a thing. If I want to be able to resolve something, and going to take the time to setup a reservation so it has the name I want, why would you not just set the IP??

          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

          C 2 Replies Last reply Reply Quote 0
          • C
            CloudNode @johnpoz
            last edited by

            @johnpoz I am going to have to decrease my DHCP scopes and leave more space as I did not account for many statics.

            1 Reply Last reply Reply Quote 0
            • C
              CloudNode @johnpoz
              last edited by

              @johnpoz while on this topic, how do you manage devices that have 2 mac addresses such as a laptop (wifi and ethernet) - would you have to add 2 static entries? Or is there a better way perhaps via Client Identifier

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @CloudNode
                last edited by

                @iptvcld I don't really have such devices.. The only devices on my wifi are devices that are mobile - I really don't have anything that moves from wired to wireless all the time?

                My pc the wireless is disabled, my work laptop is wired while I am home working..

                If I did fire up my wireless interface on either of those devices I wouldn't really care what its IP is, etc.

                But if you have some device that you move about from wired to wireless, just setup 2 different IPs for the different macs..

                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

                C 1 Reply Last reply Reply Quote 0
                • C
                  CloudNode @johnpoz
                  last edited by

                  @johnpoz or I can setup 2 statics for each Mac using the same IP to sure if a device roams from eth to wifi that the IP will remain the same. I am using AdGuard Home as my dns server and a device may have some additional rules based on the set IP. So if that IP changes, I will have issues and unfortunately AdGuard cannot identify via MAC unless I use their DHCP server.

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @CloudNode
                    last edited by

                    @iptvcld said in DHCP custom set hostname are not resolving:

                    I can setup 2 statics for each Mac using the same IP

                    Yeah I don't think it will let you do that.. I don't think it will let you set a reservation for mac abc to 192.168.1.100 and mac xyz to 192.168.1.100

                    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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      CloudNode @johnpoz
                      last edited by

                      @johnpoz Ok so it works, but not the best. I had to reboot the laptop each time even if I do a release and renew - not the best. Seems like I will need to have 2 IPs reserved for a laptop with host names such as LenovoWifi/LenovoEth and then in AdGuard (my DNS) - I would need 2 persistent clients using both IPs and have the same custom filters for both. Dirty..

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

                        @iptvcld said in DHCP custom set hostname are not resolving:

                        I had to reboot the laptop each time even if I do a release and renew - not the best

                        If it's a windows PC :

                        ipconfig /release
                        ipconfig /renew
                        

                        will do.

                        And that's even not needed.
                        A cable disconnect, and the device will 'loose' that lease by default.
                        When you select then with the Wifi a SSID, a lease will be obtained automatically.

                        When going back to cable, it might be best to actually disconnect - mouse click - from the SSID, and then put the cable in place.
                        Always worked for me like that for the better part of this century.
                        Info valid for every possible OS.

                        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.