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

Understanding how to get hostnames in IPv6 leases

Scheduled Pinned Locked Moved DHCP and DNS
13 Posts 6 Posters 3.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.
  • G
    Gooberpatrol66
    last edited by Sep 1, 2020, 10:54 AM

    So according to this,

    https://gitlab.isc.org/isc-projects/dhcp/-/issues/87

    in order to get hostnames to appear in IPv6 leases, I need to enable DDNS on the DHCP server. So I go to Services > DHCPv6 Server > Dynamic DNS, click Enable Registration, then in the DDNS Domain, I put the domain name that my registrar has assigned to my network, and in Primary DDNS address, I put 10.0.0.1, then I set the Key Algorithm to SHA512, then I put something I generated in KeePass as the DDNS Domain Key Secret.

    Does all of that sound correct?

    J 1 Reply Last reply Sep 1, 2020, 1:13 PM Reply Quote 0
    • J
      JKnott @Gooberpatrol66
      last edited by Sep 1, 2020, 1:13 PM

      @Gooberpatrol66

      Is there some specific reason you're using DHCPv6? You generally don't need it as SLAAC provides for automatic addressing. With SLAAC you get at least a consistent address that you configure the DNS server to point to. Also, if you use DHCPv6, Android devices won't work, as for some stupid reason Android does not support it.

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

      D G 2 Replies Last reply Sep 1, 2020, 2:20 PM Reply Quote 0
      • D
        dotdash @JKnott
        last edited by Sep 1, 2020, 2:20 PM

        @JKnott said in Understanding how to get hostnames in IPv6 leases:

        Also, if you use DHCPv6, Android devices won't work, as for some stupid reason Android does not support it.

        You mean, Android doesn't support DHCPv6 because Lorenzo Colitti is a %#$%! who thinks just because a standard doesn't fit into his use case, that no one should have the option to decide if they want to use it.

        As for the OP- what are you trying to do exactly? It sounds like you want to push an AAAA record to your public DDNS zone for every host that gets a lease. Normally, you'd just send the dynamic updates to a private DNS server, either on pfSense, or elsewhere on your LAN.

        1 Reply Last reply Reply Quote 0
        • K
          kiokoman LAYER 8
          last edited by Sep 1, 2020, 3:17 PM

          he's a bully
          he wants to impose his ideas instead of allowing the user to choose
          it is a shame that he is an Italian engineer to be NOT proud of

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • G
            Gooberpatrol66 @JKnott
            last edited by Sep 7, 2020, 8:52 AM

            @JKnott SLAAC means IPv6 addresses won't appear in the leases page, right?

            J 1 Reply Last reply Sep 7, 2020, 10:48 AM Reply Quote 0
            • K
              kiokoman LAYER 8
              last edited by Sep 7, 2020, 9:21 AM

              right, there are no lease state associated with SLAAC users.

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • J
                JKnott @Gooberpatrol66
                last edited by Sep 7, 2020, 10:48 AM

                @Gooberpatrol66

                Correct. Since DHCPv6 isn't used, there are no leases.

                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
                • M
                  MikeV7896
                  last edited by MikeV7896 Sep 7, 2020, 11:24 AM Sep 7, 2020, 11:24 AM

                  The only way to get DHCPv6 hostnames with pfSense is with client self-registration using dynamic DNS. Unfortunately the ISC DHCPv6 server (used by FreeBSD, and thus pfSense) does not track hostnames for IPv6 leases, like it does for IPv4.

                  I've never implemented such DDNS self-registration, so can't say for certain, but as long as your 10.0.0.1 device is running an authoritative DNS Server, like BIND, that sounds relatively correct what you've done. Of course, there's likely configuration needed on the DNS server side to accept the DDNS data from the clients.

                  As far as SLAAC goes...

                  SLAAC is completely stateless. It's fully on the client to determine the IPv6 address it will use, and to make sure it's not in use before using it. There is no definitive list of what addresses are being used. The closest list available is the Diagnostics > NDP Table list, which is a list of all IPv6 addresses found through network discovery. No hostnames are included on the list (though MAC addresses are included), and if you do use DHCPv6, those addresses will also appear on the list, since it's ALL IPv6 addresses discovered on the network(s).

                  As far as a "consistent" address with SLAAC... if you don't want a SLAAC address to change, you need to disable privacy extensions on each client device. Windows, MacOS, and many Linux distros have privacy extensions enabled by default, so the host portion of the IPv6 address will change on a relatively regular interval (often at least once a day). It's possible to disable privacy extensions in all three of those operating systems, but not so much in Apple's iOS devices. I don't think Android allows disabling them either. With privacy extensions disabled, the address will usually be generated based on the MAC address of the interface. Do be aware that this can easily enable tracking across networks, since in theory your MAC address is unique to your device, so no one else will have it.

                  The S in IOT stands for Security

                  J B 2 Replies Last reply Sep 7, 2020, 1:30 PM Reply Quote 1
                  • J
                    JKnott @MikeV7896
                    last edited by Sep 7, 2020, 1:30 PM

                    @virgiliomi said in Understanding how to get hostnames in IPv6 leases:

                    s far as a "consistent" address with SLAAC... if you don't want a SLAAC address to change, you need to disable privacy extensions on each client device.

                    Regardless of whether privacy addresses are used, you will have one consistent address, either MAC or random number based. On my Linux system it's MAC based. On Windows 10, it was random number, which I changed to MAC. You only use the consistent address for DNS, as the privacy addresses only last for a week and you'll have up to 7 of them.

                    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
                    • G
                      Gooberpatrol66
                      last edited by Sep 8, 2020, 5:34 AM

                      And if I have an ethernet bond and use SLAAC then the address of the bond will remain consistent?

                      J 1 Reply Last reply Sep 8, 2020, 10:49 AM Reply Quote 0
                      • J
                        JKnott @Gooberpatrol66
                        last edited by Sep 8, 2020, 10:49 AM

                        @Gooberpatrol66

                        What do you mean by "ethernet bond"? When you get an IPv6 address with SLAAC you will get at least a consistent address.

                        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
                        • G
                          Gooberpatrol66
                          last edited by Gooberpatrol66 Sep 9, 2020, 5:34 AM Sep 9, 2020, 5:34 AM

                          LACP Link aggregation

                          1 Reply Last reply Reply Quote 0
                          • B
                            Bob.Dig LAYER 8 @MikeV7896
                            last edited by Bob.Dig Sep 9, 2020, 7:53 AM Sep 9, 2020, 7:47 AM

                            @virgiliomi said in Understanding how to get hostnames in IPv6 leases:

                            Unfortunately the ISC DHCPv6 server (used by FreeBSD, and thus pfSense) does not track hostnames for IPv6 leases, like it does for IPv4.

                            At least Static DHCP > Register DHCP static mappings in the DNS Resolver in Unbound does work for the DHCPv6 Server & RA too, for Static Mappings and the Hostname defined there. But often it takes a little bit longer.

                            1 Reply Last reply Reply Quote 0
                            • D ddbnj referenced this topic on Aug 31, 2022, 6:07 AM
                            • D ddbnj referenced this topic on Aug 31, 2022, 6:08 AM
                            13 out of 13
                            • First post
                              13/13
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received