NAT/Firewall for hosting public-facing DNS server



  • Version 2.3.2-RELEASE-p1

    I am trying to host a public dns server that lives in the DMZ and am having issues. Any insight would be greatly appreciated.

    I (successfully) utilize pfBlockerNG to block ad's, etc. on the local network. pfBlockerNG leverages the DNS Resolver which I think is part of the problem.

    I have the NAT and firewall rules set in the same manner for natting port 80 to a webserver.

    When I run a test externally using nslookup and specifying the server. I get a request time-out… Watching the firewall logs I see the :53 requests going to the gateway address instead of the nat ip.

    Current set is a 1:1 NAT

    In the configuration of DNS Resolver it says Queries to other interface ip's not selected below are disgarded.

    How do I set it so that DNS queries on port 53 destined for the natted IP wont get routed to the gateway address and then get disgarded?

    Screenshots are attached