# dns failover a project written in go by db123 to check the iran server availability and if there was any problem change the bind9 dns config contents. ## help ```bash ./dns-failover -h Usage of ./dns-failover: -active-conf string Active zone config path (default "/etc/bind/db.active") -domain string Domain for HTTPS SNI/Host -fail-interval duration Interval during failure detection (default 10s) -failover-conf string Failover zone config (default "/etc/bind/db.failover") -https Use HTTPS -interval duration Normal check interval (default 2m0s) -ip string Static IP to check -port string Port to check (default "80") -primary-conf string Primary zone config (default "/etc/bind/db.primary") -retries int Consecutive retries before state change (default 5) -timeout duration HTTP timeout (default 5s) -url string Health endpoint path (default "/nginx-health") -v Verbose logging ```