How to failover to an offline page?  How to failover to an off...

Dynu's System Monitoring & DNS Failover service helps you monitor critical services from multiple geographic locations and automatically respond when downtime is detected. One powerful failover action is enabling Offline Settings for a domain when a monitor goes down — allowing you to display a custom offline message or redirect visitors to a fallback URL until your service is restored.

What is a Failover Action?


A failover action is an automated response that Dynu performs when a monitor's state changes. For example, when a monitor transitions to Down, you can configure an action to automatically enable the Offline Settings for your domain — informing visitors that your site is temporarily unavailable. When the monitor recovers and transitions back to Up, a second action can automatically disable the offline settings and restore normal DNS resolution.

Offline Settings support two options:

  • Display an offline message — Show a custom message to visitors, such as "Sorry, my website is not available at the moment. Please visit my website some other time."
  • Point to a URL — Redirect visitors to a fallback URL, such as a status page or a mirror site, while your primary server is down.
For more details on configuring Offline Settings, please refer to the Offline Settings tutorial.

How to configure a Failover Action for Offline Settings?


To configure a failover action that enables Offline Settings when a monitor goes down, follow these steps.

Listing Item Step 1

Log into the control panel, go to System Monitoring Icon DNS Failover  and click on Monitors. Select the monitor you want to configure failover actions for by clicking on its name.

In the Manage Monitor page, click the Actions  button to manage failover actions for this monitor.

Manage Monitor Actions - Dynu DNS Failover
Listing Item Step 2 — Add a "Down" action to enable Offline Settings

Click the + Add button to add a new failover action. Configure the following fields:

State   Select Down. This action will trigger when the monitor detects that your service is unavailable.

Action Type   Select Enable Offline Settings. This will activate the Offline Settings configured for your domain when the monitor goes down.

Domain Name   Select the domain name you want the offline settings to apply to (e.g., dynu.biz).

The Offline Action and Offline Message fields shown below the form reflect the offline settings currently configured for the selected domain. For example:

  • Offline Action: Display offline message
  • Offline Message: Sorry, my website is not available at the moment. Please visit my website some other time.
You may also configure your domain's offline settings to redirect to a URL instead of displaying a message. To set this up, refer to the Offline Settings tutorial.

Click + Add to save this action.

Failover Action - Enable Offline Settings when Down
Listing Item Step 3 — Add an "Up" action to disable Offline Settings

Click the + Add button again to add a second failover action for when your service recovers. Configure the following fields:

State   Select Up. This action will trigger when the monitor detects that your service has recovered.

Action Type   Select Disable Offline Settings. This will deactivate the Offline Settings for your domain, restoring normal DNS resolution automatically.

Domain Name   Select the same domain name used in Step 2 (e.g., dynu.biz).

Click + Add to save this action.

Failover Action - Disable Offline Settings when Up
Listing Item Step 4 — Verify your configuration

Once both actions are saved, your monitor will:

  • Automatically enable Offline Settings for your domain when the monitor goes Down, notifying visitors that the service is unavailable.
  • Automatically disable Offline Settings when the monitor comes back Up, restoring normal access for your visitors.
Failover Action - Enable Offline Settings when Down

You can review all configured actions and their logs by clicking the Action Log  button on the Manage Monitor page.


Loading...