DNS to pi-hole

Hello,

I'm trying to force all DNS redirects to be forwarded to my pi-hole


default PI-hole already is my DNS server, so for most devices it won't matter, However I have the feeling a few are slipping out.
So I created this Port Forward rule. Now only the issue is that if I use any source IP, pi-hole itself keeps looping.
So I would like to select Any
image
except 1.
is this possible?

There is an all but command using an exclamation mark before the IP or port.

!172.16.150.1

like this?

config redirect
        option dest 'lan'
        option target 'DNAT'
        option name 'DNS on Pi-hole'
        option src 'lan'
        option src_dport '53'
        option dest_ip '192.168.180.10'
        option src_ip '!192.168.180.10'

seems like it's working
thnx

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.