1
General Discussion / Cannot get forced redirect of DNS to Pihole
« on: January 09, 2020, 11:11:58 am »
I'm trying to have all DNS traffic on my LAN redirected to my pihole. I've looked at several guides and tutorials and I think I have it setup properly but it doesn't seem to work.
My pihole is on 192.168.1.22
My Port Forward rule is (see screenshot):
Interface: LAN
Protocol: TCP/UDP
Source: invert -> 192.168.1.22
Source Port: DNS
Destination: invert -> LAN ADDRESS
Destination Port: DNS
Redirect Target: 192.168.1.22
Redirect Port: DNS
Nat Reflection: Disabled
https://imgur.com/UnEzcka
In the firewall rules LAN interface, I moved the rule that was created to the top (just under the automatic rules).
When I run 'nslookup test.com 192.168.1.22' I can see the lookup in the pihole logs. But when I run 'nslookup car.com 8.8.8.8', I don't see the lookup in the pihole logs meaning that it was able to look up directly to 8.8.8.8 and bypass the pihole.
Is there anything that I'm missing?
Thanks.
My pihole is on 192.168.1.22
My Port Forward rule is (see screenshot):
Interface: LAN
Protocol: TCP/UDP
Source: invert -> 192.168.1.22
Source Port: DNS
Destination: invert -> LAN ADDRESS
Destination Port: DNS
Redirect Target: 192.168.1.22
Redirect Port: DNS
Nat Reflection: Disabled
https://imgur.com/UnEzcka
In the firewall rules LAN interface, I moved the rule that was created to the top (just under the automatic rules).
When I run 'nslookup test.com 192.168.1.22' I can see the lookup in the pihole logs. But when I run 'nslookup car.com 8.8.8.8', I don't see the lookup in the pihole logs meaning that it was able to look up directly to 8.8.8.8 and bypass the pihole.
Is there anything that I'm missing?
Thanks.