Using DNS Failover with a template allows you to use a single failover record for multiple domains that share the same configuration. This is accomplished by setting up a template with a record set for the domains and setting up failover within the template. You can then apply the template to multiple domains.
Step 1: Add a Template
Select the Advanced menu and click on “Templates”
Click on “Add Template”
Give the template an identifiable name. You can choose to base your template on the configuration of an existing domain, to do this select a domain name from the drop menu and click ok. Otherwise, click ok to continue.
Step 2: Adding an A Record to the Template
With the template created, we will define A records in the template that you will configure DNS Failover on. Assuming a shared hosting environment (where multiple domains will have the same primary IP address), we will define a root record for the template to configure DNS Failover on. The root record will have a primary IP address of 126.96.36.199 and a backup IP address of 188.8.131.52 which will reference a separate shared hosting environment at another location.
Under “A Records” click the plus sign to add a new record.
Now add the FQDN, the IP, and the TTL to the A Record. We will add a root record (A record with the name field left blank) to the domain example.com with an IP address of 184.108.40.206 and a TTL of 180 seconds. Records which use DNS Failover services should have a TTL between 180-300 seconds.
Step 3: Creating a Contact List
Now we will set up a contact list for notification of the failover event. Select the “Config” menu and click on “Contact Lists” .
Click on the plus sign (+) to add a new contact list
Give the contact list an identifiable name and enter the email addresses you would like included in the list, one per line. Groups are discussed in a tutorial here, however if you are the only user for your account your contact list should be part of the default group. Otherwise, it should be part of whatever group is set up to have management permissions for the domain. Then click “Submit”
Step 4: Adding Failover to the Template A Record
Now we will configure DNS Failover on the template, Select the Advanced menu and click on “Templates”
Select your template from the drop down menu.
Under the “SM / FO” column next to the A record with the IP of 220.127.116.11, click “off” to edit the configuration.
Enable System Monitoring and DN Failover by checking the boxes.
Enable System Monitoring and/or DNS Failover by checking the boxes. These can be used independently of one another if you wish.
Provide a “System Description” – this will be included in the notification you receive so you know which system the notification is for.
Select your contact list to be notified of IP statuses or changes – We select the one we created. The default notification is to the “Account Owner” which is the email address on file for the account (you can view this under the Config – Users menu).
Select a maximum number of emails you would like to receive regarding each system monitoring and/or failover event.
8. Select a Sensitivity Level – The “sensitivity” option in DNS Failover allow you to specify different numbers of checks the monitoring locations will make against the IP. High Sensitivity means less checks, three checks are made in immediate succession of one another to confirm the status of the server. Medium Sensitivity (which is the default) performs six immediate checks. Low Sensitivity performs nine immediate checks. The lower the sensitivity level, the more confirmations the monitoring servers will make.
Configure a port and protocol to monitor based on what criteria you want to confirm is reachable on your server. In the example here we are configuring the primary IP address of 18.104.22.168 to be monitored on HTTP port 80 and failing over to the IP address 22.214.171.124 if the primary is not available.
Enter the fully qualified domain name of the system you are monitoring. This is the full host name of the monitored system.
This is optional. We have also added a file and string to query for in the HTTP configuration (this is only example data), these fields are optional with an HTTP or HTTPS configuration. The system will query http://126.96.36.199:80/index.html and look for the string of UP in the first 2KB of text on that page. All this criteria must be met for the IP to be considered online. In addition, the web server must reply with a 200 response code.
This is optional. We have also enabled the “Turn off auto-failover after first failure” feature with a check mark. This means that DNS Failover will not revert traffic back to the primary IP address automatically. The current IP will remain 188.8.131.52 until it is manually edited it back to 184.108.40.206.
For your information, below is the list of networks our monitoring services will check your primary IP address from:
Step 5: Apply the Template to a Domain
Now we apply the template to domain(s), Select Managed DNS
Select a domain from the either the “Recently Updated Domains” box, or start typing the domain name in the text box on the “Select Domain” tab.
Click on the “Settings” tab.
Select your template from the drop down menu and click save.