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

    DNS resolver hostname

    Scheduled Pinned Locked Moved DHCP and DNS
    dns resolverdhcp
    12 Posts 3 Posters 1.8k Views 3 Watching
    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.
    • KOMK Offline
      KOM @thebusyguy22
      last edited by

      @thebusyguy22 Regardless of their reported hostname, you can still add a DNS host override and then refer to them as whatever you like.

      T 3 Replies Last reply Reply Quote 0
      • T Offline
        thebusyguy22 @KOM
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • T Offline
          thebusyguy22 @KOM
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • T Offline
            thebusyguy22 @KOM
            last edited by

            @kom is what I'm trying to get is the DHCP lease to update the hostname to the newly created domain name. So for example creating alexa3 would update my lease host name to alexa3.home.local for example. I can ping Alexa3 just fine so that part is working as expected it's just getting it to reflect on the DHCP list.

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

              @thebusyguy22 said in DNS resolver hostname:

              it's just getting it to reflect on the DHCP list.

              You mean like this?

              alexa.png

              Just put the hostname you want in your reservation

              hostname.png

              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.8, 24.11

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                thebusyguy22 @johnpoz
                last edited by

                @johnpoz okay I can do that too I was just trying to avoid have to have static IP's for them if at all possible. It's just weird to me why DNS resolver isn't changing it.

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

                  Why would you think dns resolver would have anything to do with the hostname presented to the dhcp server.

                  The alexa device is going to present its whatever random sort of amazon name it has to your dhcp server - that is what the dhcp server will use. Unless you create a reservation and say use this hostname for this mac.

                  be it you assign an IP or not - you can have it pull from the pool. But why would you not just assign it a specific IP.. While your creating the reservation, 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.8, 24.11

                  T 1 Reply Last reply Reply Quote 1
                  • T Offline
                    thebusyguy22 @johnpoz
                    last edited by

                    @johnpoz well any time in the past when I set the domain name it reflects back to that in the DHCP leases. If you don't see any reason it's an issue doing it via static mapping then I have no issue doing it that way. Thank you very much for your help and input I appreciate if!

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

                      @thebusyguy22 said in DNS resolver hostname:

                      when I set the domain name it reflects back to that in the DHCP leases.

                      Where? Are you setting this - on the device/host. Domain name, not host name?

                      Think you confusing dhcp name reflecting in dns.. Via registration of the dhcp in dns.

                      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.8, 24.11

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        thebusyguy22 @johnpoz
                        last edited by

                        @johnpoz yes sorry I ment to say host name. So when I create an override say I name host Camera it usually shows up on the DHCP list as Camera.local.home on the lease page under hostname.

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

                          If the client sends that as its hostname.. Then ok - but dhcp leases shouldn't be showing a fqdn.. It would only be showing the hostname.

                          If you want client amazon-random# to show up as alexa-name in your dhcp lease. The correct solution is to either have that specific client send that hostname to the dhcpd, which I don't think you can do on alexa. Or tell the dhcp server to use hostname xyz in the host name when you set a reservation.

                          If your setting reservations for your clients, and register that in dhcp settings - then all your dns is taken care of.

                          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.8, 24.11

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