Navigation

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

    How to set DNS forward by condition in DNS resolver

    DHCP and DNS
    2
    3
    63
    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
      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
      • JeGr
        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
          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