How to set DNS forward by condition in DNS resolver



  • 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


  • LAYER 8 Moderator

    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?



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


Log in to reply