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

    PfSense cant resolve Windows DHCP Leases Hostname.

    DHCP and DNS
    3
    10
    4.4k
    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.
    • A
      akeness
      last edited by

      Hi guys I'm new in pfSense and starting to love it.. Here's my setup.

      Windows 2008 R2 = AD/DHCP/DNS
      pfSense = Router/Squid/SquidGuard

      What i want to happen is I wanted pfSense to resolve the hostname of the dhcp clients from Windows Server DNS/DHCPs.

      When i go to Status > Traffic Graph and chose LAN, Display Hostname, I was able to see the hostname of those clients i see in Reverse Lookup zones from my Windows DNS server but I cannot see the hostname of those clients inside Forward Lookup Zones > mydomain.com they only show ip's.

      Tried to tweak stuffs in DNS forwarders and pfSense DNS server and cant make it work.. Any help is much appreciated. Thanks in advance!

      Mark.

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

        And where does pfsense point to for dns?  Point it at your 2k8r2 box and there you go - anything that it serves for dns pfsense would resolve.

        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

        1 Reply Last reply Reply Quote 0
        • A
          akeness
          last edited by

          thanks johnpoz,

          pfSense dns points to my 2k8r2 domain that also has the dhcp and dns for the clients.

          it resolves all the Reverse Lookup Zones mostly static ips in my domain.. i see their hostnames. but not those clients under dhcp given by my 2k8r2 dhcp server.

          1 Reply Last reply Reply Quote 0
          • A
            akeness
            last edited by

            setup:

            3 isp
            4 routers
            1 pfsense
            220 clients not including the servers.

            isp#1 + router#1 = gateway 3 (10.22.22.3)
            isp#2 + router#2 = gateway 4 (10.22.22.4)
            isp#3 + router#3 = gateway 2 (10.22.22.2)
            isp#1 + isp#2 + isp#3 = pfSense = gateway 10 (10.22.22.10) DNS = 10.22.22.15, 10.22.22.16
            router#4 = gateway 1. (10.22.22.1) DNS = 10.22.22.15, 10.22.22.16

            router#4 does all the routing. we have specific applications that runs thru specific gateway. everything that was not listed to this router is going to pfSense. 0.0.0.0 / 0.0.0.0 = 10.22.22.10 mostly used for general internet.

            w2k8r2 #1 = AD#1 = 10.22.22.15 (DHCP/DNS#1/etch..)
            w2k8r2 #2 = AD#2 = 10.22.22.16 (DNS#2)

            all clients default gateway is gateway 1 (10.22.22.1) and joined in the domain.

            my problem in pfSense is  i was able to resolve all DNS "Reverse Lookup Zones"
            but not those inside "Forward Lookup Zones/mydomain.com" which is mostly DHCP clients.

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              DHCP should be automatically updating DNS with the client hostname that just got served an IP address.  Can you verify whether or not DHCP clients actually end up in your DNS?  What happens if you manually use nslookup on one of your live DHCP IPs?  Doe sit resolve to a hostname?  I have this working perfectly for me without any goofing around, so I suspect your issue may be a break between DHCP and DNS.  I use MS for this same role and I've seen lots of funnies where leases aren't updated, IP conflicts between DNS and DHCP, etc.

              1 Reply Last reply Reply Quote 0
              • A
                akeness
                last edited by

                done via pfSense DNS Lookup:

                Hostname or IP = 10.22.20.29 No record found

                Resolution time per server
                Server Query time
                10.22.22.15 212 msec
                10.22.22.16 2301 msec

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  What happens when you try to resolve those same IP addresses from another server or your desktop?

                  1 Reply Last reply Reply Quote 0
                  • A
                    akeness
                    last edited by

                    i think i got it working now..

                    no special configuration needs to be done in pfSense. it was Windows DNS issue.

                    my subnet was 10.22.20.0/22 so i added all class C in Reverse Lookup Zones.

                    1 Reply Last reply Reply Quote 0
                    • A
                      akeness
                      last edited by

                      @KOM:

                      What happens when you try to resolve those same IP addresses from another server or your desktop?

                      10.22.20.44
                      Server:  ad2215.mydomain.com
                      Address:  10.22.22.15

                      Name:    5p02.mydomain.com
                      Address:  10.22.20.44

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        Just as I suspected.  Glad to see you got it working.

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