This is a test script that investigates whether EEM could be used to detect and mitigate a DNS service outage. This EEM runs from Kron and queries your primary DNS server every 5 seconds (TCP-based queries only); if three consecutive failures are detected then EEM will change a local static route so that DNS queries can be redirected to a backup server. This script could be useful for those interested in evaluating a simple DNS redundancy (Anycast) configuration.