$ ./test-failover.sh
Starting OCI DNS Failover Demo...
Target Domain: failover.acedemos.net
Primary IP: 139.185.52.29
Secondary IP: 129.151.143.95
----------------------------------------------------------------------
Step 1: Monitoring failover.acedemos.net. Currently resolving to 139.185.52.29.
ACTION REQUIRED: Stop the HTTP service on your PRIMARY server (139.185.52.29) NOW.
Waiting for failover to Secondary (129.151.143.95)...
----------------------------------------------------------------------
Time Elapsed: 87s | Still resolving to Primary...
[SUCCESS] Failover Detected!
New IP: 129.151.143.95
Total Failover Time: 89 seconds
----------------------------------------------------------------------
Step 2: Monitoring for Recovery.
ACTION REQUIRED: Start the HTTP service back up on your PRIMARY server (139.185.52.29).
Waiting for failback to Primary...
Time Elapsed: 86s | Still resolving to Secondary...
[SUCCESS] Recovery Detected!
Domain restored to: 139.185.52.29
Total Recovery Time: 88 seconds
Demo Complete.