I use pihole on some OLD repurposed chinese media box with armbian and I wanted my Mikrotik to automatically change DNS to ISP DNS in case that the pi-hole goes down and send me notification. Script is copied directly from config export.
- I run it every minute via scheduler
- I've lowered DHCP lease time to 5 minutes...but yes, there can be short downtime for clients...
/system script