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

    Reverse DNS (PTR records) and the pfSense DHCP server

    DHCP and DNS
    4
    9
    2.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.
    • L
      LaserGuidedCake
      last edited by

      Fellows,

      I currently have a pfSense DHCP server setup to update forward DNS zones - but reverse DNS updates seem to elude me...

      My question is as follows:

      1. Where in the DHCP settings to I specify a reverse zone to be updates (something alike "ddns-rev-domainname" for the ISC DHCP server) or -
      2. If this isn't handled by the DHCP server and is a function of DNS (BIND, in my environmnet) how do I configure the server to dynamically update these reverse records?

      Please let me know what additional information I can provide - thanks!

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @LaserGuidedCake
        last edited by Bob.Dig

        @laserguidedcake Where do you get your IPs from, normally you configure it there I would guess, if we are talking about public IPs.

        L 1 Reply Last reply Reply Quote 0
        • L
          LaserGuidedCake @Bob.Dig
          last edited by

          Hey @bob-dig,
          This is all internal - addresses are distributed from the pfSense. I nmy environment I have 3 networks, with 3 scopes, updating 3 forward DNS zones, but ovibously, I se no way to update my reverse...

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @LaserGuidedCake
            last edited by

            @laserguidedcake I would guess this is a "bind" thing, and what do you mean by dynamically updating those records? But I am out, enough guessing. 😀

            L 1 Reply Last reply Reply Quote 0
            • L
              LaserGuidedCake @Bob.Dig
              last edited by

              hey again @bob-dig
              In the DHCP settings, you can specify how a DHCP client can update a DNS server, here are the settings for that from my deployment - blanked out some info for privacy:

              f09355f6-cbe1-4f1f-9b04-0e60aec630c3-image.png

              1 Reply Last reply Reply Quote 0
              • L
                LaserGuidedCake
                last edited by

                For anyone else who is watching - I did find this post that touches my topic in breif, but is more focused on interesting subnet sizes and the like:

                https://forum.netgate.com/topic/157782/dhcp-server-and-ptr-creation

                1 Reply Last reply Reply Quote 0
                • L
                  LaserGuidedCake
                  last edited by

                  alright, so for those interested:

                  1. it appears that pfSense uses the standard ISC DHCP server
                  2. its config is stored in /var/dhcpd/etc/dhcpd.conf
                  3. When making dhcp scopes, I can see there there are some reverse declarations at the bottom of the zone file. The standard
                  zone 12.10.10.in-addr.arpa. { 
                          primary 10.10.12.14; 
                          key "mykeyhere";
                  

                  kinda stuff.
                  4. In looking at the logs from the DNS server (BIND) I can see registrations of the forwards, but not fo the reverseses...
                  5. After setting up my own DHCP server and creating a config file, I noticed that I needed some config the get the reverse zones to register. Something kinda like this? (config I scavanged from other forums)

                  ddns-update-style standard;
                  ddns-rev-domainname "in-addr.arpa.";
                  
                  1. I dont see any options is the pfSense gui that controls for either of these options, even though it creates the reverse registration...

                  At this point, I think this topic is closed, but anyone else feel free to comment regarding DHCP and reverse registration.

                  Thanks again all!

                  1 Reply Last reply Reply Quote 0
                  • O
                    oracle_sod
                    last edited by

                    Sorry to dig up an old topic but this the same issue I'm having

                    I have a Bind DNS server (separate host to pfsense), pfsense is the DHCP server for my network, i have pfsense updating bind however no reverse entry is created, no attempt by pfsense to create a reverse entry is even made

                    Has anyone been able to get pfsense DHCP to update reverse DNS when issuing an IP to an internal network ?

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

                      @oracle_sod

                      I've set up my DHCP6 LAN servers to update the reverse on my BIND DNS server.

                      My BIND isn't somewhere local, but on the Internet, as my primary domain name server for all my domain names.
                      I'm not updating IPv4 stuff, as IMHO it doesn't make sense to make available to the public that the IPv4 of my (example) LAN based NAS has the IPv4 192.168.1.45 - neither the reverse.
                      If your bind is doing stuff for your LAN? then I can imagine that it does make sense.

                      For IPv6 GUA's, it does make sense.

                      10-Nov-2023 12:21:29.441 update: client @0x7fd4dc004fa0 82.127.26.100#63539/key update: updating zone 'c.d.6.a.7.0.9.0.9.1.b.c.1.0.a.2.ip6.arpa/IN': deleting rrset at 'c.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.d.6.a.7.0.9.0.9.1.b.c.1.0.a.2.ip6.arpa' PTR
                      10-Nov-2023 12:21:29.441 update: client @0x7fd4dc004fa0 82.127.26.100#63539/key update: updating zone 'c.d.6.a.7.0.9.0.9.1.b.c.1.0.a.2.ip6.arpa/IN': adding an RR at 'c.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.c.d.6.a.7.0.9.0.9.1.b.c.1.0.a.2.ip6.arpa' PTR epackferpar22.bhf.tld.
                      10-Nov-2023 12:22:31.211 update-security: client @0x7fd4dc004fa0 82.127.26.108#63539/key update: signer "update" approved
                      

                      As I'm using KEA (for testing) right now, this updating stopped.
                      I don't care, as my IPv6 prefixes are static, so the GUA is static.

                      The ISC DHCPv4 uses 'nsupdate' which is the same ting as this : Services > Dynamic DNSRFC 2136 Clients.

                      My pfSense acme package uses the exact same 'nsupdate' = RFC2136 to talk to the same BINS server so I can obtain a certificate for my locally used domain name.

                      About my NAS on my LAN :
                      On my PC : reverse lookup :

                      C:\Users\Gauche>nslookup 192.168.1.33
                      Serveur :   pfSense.bhf.tld
                      Address:  2a01:cb19:ffff:a6dc:92ec:77ff:fe29:392c
                      
                      Nom :    diskstation2.bhf.tld
                      Address:  192.168.1.33
                      

                      This always worked out of the box.
                      And again : I'm using the rather limited 'kea' right now, not even isc dhcpd. No "bind", just unbound with default settings.

                      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.