Navigation

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

    Register DHCPv6 hostnames in DNS

    IPv6
    6
    9
    699
    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.
    • M
      mrsunfire last edited by

      Hi!

      I'm running a DHCPv6 server for my LAN clients and the DNS resolver as well. If I ping a hostname who has an IPv6 adress, I only can lookup its IPv4. Is it possible to automatically register the IPv6 adresses in the DNS resolver?

      1 Reply Last reply Reply Quote 0
      • MikeV7896
        MikeV7896 last edited by

        Hosts don't provide a hostname to the DHCPv6 server, as it's not part of the specification. As a result, there's no way to directly associate a DHCPv6 address with a hostname.

        The S in IOT stands for Security

        IsaacFL 1 Reply Last reply Reply Quote 0
        • sigi
          sigi last edited by

          I have a setup where the hostnames register in external BIND forward and reverse via pfsense-dhcpv6. Win10, CentOS and fedora works, Android and macOS not.

          1 Reply Last reply Reply Quote 0
          • IsaacFL
            IsaacFL @MikeV7896 last edited by

            @virgiliomi said in Register DHCPv6 hostnames in DNS:

            Hosts don't provide a hostname to the DHCPv6 server, as it's not part of the specification. As a result, there's no way to directly associate a DHCPv6 address with a hostname.

            It is part of the DHCPv6 spec, it is just that ISC DHCP used by FreeBSD, and so also pfSense doesn't support it.

            sigi 1 Reply Last reply Reply Quote 0
            • sigi
              sigi @IsaacFL last edited by sigi

              @isaacfl Your information seems to be outdated. Pfsense does support it ! I started to use it under 2.4.3. Pfsense dhcpv6 registers hostname and PTR's to ISC BIND under FreeBSD. Look at the "DHCPv6 Server & RA" settings. The only part that could be optimized is update transport over IPv6
              "DDNS Server IP (Enter the primary domain name server IPv4 address for the dynamic domain name.)"

              1 Reply Last reply Reply Quote 0
              • jimp
                jimp Rebel Alliance Developer Netgate last edited by

                Right, but that is using a BIND server with client self-registration and not what is built into the pfSense base system (DNS Resolver or Forwarder)

                The same method used for IPv4 won't work for IPv6 because ISC DHCPD doesn't record hostnames in the lease database, if it even receives them from clients.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                sigi 1 Reply Last reply Reply Quote 0
                • sigi
                  sigi @jimp last edited by sigi

                  @jimp Ok, agree to the technical details. I wanted to give a hint for how to solve OT's need for automatic registering.

                  I checked again how it works. The information comes definitive via DNS-KEY from the pfsense gateway IP. I see no need to store the name in dhcp too when the passtrough to BIND works this way.
                  Obfuscated output from BIND-log:

                  28-Sep-2018 21:03:12.656 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone 'int.somedomain.org/IN': update unsuccessful: some-host.int.somedomain.org: 'name not in use' prerequisite not satisfied (YXDOMAIN)
                  28-Sep-2018 21:03:12.658 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone 'int.somedomain.org/IN': deleting rrset at 'some-host.int.somedomain.org' TXT
                  28-Sep-2018 21:03:12.658 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone 'int.somedomain.org/IN': adding an RR at 'some-host.int.somedomain.org' TXT "024fba2obfuscatednumb2a25secret75b"
                  28-Sep-2018 21:03:12.658 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone 'int.somedomain.org/IN': deleting rrset at 'some-host.int.somedomain.org' AAAA
                  28-Sep-2018 21:03:12.658 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone 'int.somedomain.org/IN': adding an RR at 'some-host.int.somedomain.org' AAAA 2a0x:xxxx:xxxx:5af1:xxxx:xxxx:ef8f:xxxx
                  28-Sep-2018 21:03:12.661 update: client @0x8087fec00 172.31.18.1#22770/key ddns-key: view internal: updating zone '1.f.a.x.x.x.x.x.x.x.x.x.x.x.a.2.ip6.arpa/IN': adding an RR at 'x.5.7.x.x.8.f.e.x.x.2.a.x.d.4.2.1.x.a.5.1.x.x.x.x.x.x.x.x.0.a.2.ip6.arpa' PTR some-host.int.somedomain.org.
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    strangegopher last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • S
                      strangegopher last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post