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

    Preventing Forwarder/Resolver Loop

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 632 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.
    • E
      Elegant
      last edited by

      Hi guys,
      I current am taking a look at my network and had something stand out to me when using DNS Resolver. My currently layout is relatively simple:

      Host -> AD DNS -> pfSense

      I would like to have the pfSense (localhost interface) be able to resolve some of my domain queries (example.com) but it comes after AD DNS so it can't query it. I decided to add a Domain Override, but this got me thinking: If I were attempt to resolve something like "Test.example.com" which does not exist, we should enter a loop.

      The "Test.example.com" query should go to the AD DNS (Domain Override) and be forwarded back to the DNS Resolver to then meet the Domain Override to go back to the AD DNS and so on. If I am wrong on this, please let me know.

      It seems like it would be best to have the DNS Resolver not use the Domain Override when queries are coming from the AD DNS but I'm not sure how to set that up as other hosts require the current Network Interfaces/Outgoing Network Interfaces in the DNS Resolver to work (AD DNS would be sole exception). Has anyone had this issue before? Perhaps I'm missing something or this is bad practice?

      Thanks!

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

        So your domain is example.com, But there is no test.example.com, which your AD is authoritative for..  So why would it ever forward that anywhere?  It would send NX.. When you ask a authoritative ns for a record that does not exist it sends a NX..

        So if you looked for test.example.com from pfsense that got sent to your AD dns, it would get told sorry that host does not exist, done - no loop.

        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
        • E
          Elegant
          last edited by

          Perfect. Thanks!

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