Redirect DNS
-
Here is what I am trying to do:
My pfsense router has address 192.168.1.1; I am running a pi-hole(BTW, very nice piece of software to block ads) at 192.168.1.3. I want to redirect all DNS requests to 192.168.1.3, regardless of the DNS setting a client has. I found a similar thread here
https://forum.pfsense.org/index.php/topic,63399.msg342946.html
However, what I found was that redirecting to an external address like OpenDNS or 127.0.0.1 works; but redirecting to 192.168.1.3 does not work. Any hints? Thanks!
-
Is 192.168.1.3 responding to dns queries?
-
Yes when I set 192.168.1.3 as my DNS server. But no when a query is redirected to it.
-
what is it resolving.. does it have to go outbound your network.. I would assume you have created a loop where you redirect all 53 traffic to 192.168.1.3, and then it wants to go ask roots or authoritative, and your just redirecting the dns traffic back to itself.
-
Doing this stuff same-subnet doesn't work very well. If you were to put the pi-hole on a different interface/subnet you would just port forward to it on LAN.
-
I am running a pi-hole(BTW, very nice piece of software to block ads)
You can do this and more with the pfBlockerNG package:
https://forum.pfsense.org/index.php?topic=102470.0