Redirect all dns from lan to external dns server pihole

Good day

Im trying to redirect all dns to a external pihole server to prevent static dns to be used on devices.
Still a novice when it comes to mikrotik running latest stable release 7.18.2 using the pihole ip as dns on mik works well blocks the sites it should but cant get devices that is forced on static dns to to redirect and use the pihole tried with

/ip firewall nat add chain=dstnat action=dst-nat src-address=lan range dst-port=53 to-addresses=pihole to-ports=53 protocol=udp
and
chain=dstnat action=redirect to-ports=53 protocol=udp in-interface=bridgeLocal dst-port=53 log=no log-prefix=“”

any help would be greatly appreciated

You are on the right track but beware that any browser can bypass this setup, nothing is foolproof in terms of dns with a smart user.
/export file=anynameyouwish (minus router serial number, any public WANIP information, keys)

Can you explain why you want to accomlish this? And is this really a problem?

Be aware that DNS requests can travel to port 53 (standard) ,port 853 (DoT, also known as DNS over TLS) and port 443 (DoH, also known as DNS over HTTPS).

Don’t forget to redirect both TCP (seldomly used) and UDP.
And don’t forget to exclude your PiHole from this dstnat rule :sunglasses: Unless it is (indeed) an external server(?)

I’m sure all clients receive the PiHle as DNS server through DHCP? If external, you don’t have to redirect if the request is sent to the PiHole.