Pi-hole forced DNS redirection with failover script

I have this running for 2 years without ever having to look back. Works nicely. Instructions should be more clear for you.
If you have multiple DNS servers (multiple AdGuard Home or PiHole, see this solution: http://forum.mikrotik.com/t/mikrotik-pihole-unbound/148772/20