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

    How to set DNS forward by condition in DNS resolver

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 159 Views 2 Watching
    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.
    • J Offline
      jam-s
      last edited by jam-s

      I have simple DNS resolver and ipsec tunnel to AWS network. I want to forward some DNS queries by condition. For example all lookup to *.abc.com should be forwarded to custom DNS server. I ve configured resolver :

      ...
      forward-zone:
              name: abc.com
              forward-addr: 8.8.8.8
      ...
      

      I checked resolve and it works only fro Pfsense, when i try to resolve abc.com from my PC it use wrong DNS server

      1 Reply Last reply Reply Quote 0
      • JeGrJ Offline
        JeGr LAYER 8 Moderator
        last edited by

        Why do you configure it manually and don't just use the domain override section at the bottom of the configuration?

        And do your PCs even use pfSense as DNS server so they get the override?

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jam-s
          last edited by

          I need to use forwarding because ip of requested domain can be changed. Yes i using DNS of pfsense.

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