If you are using a Microsoft DNS server, when Double-Take Availability failover occurs, DNS is not automatically updated. If the end-users use DNS to resolve server names and the source IP address was not failed over to the target, additional DNS updates will be required because the host records for the source will remain intact after failover. You can automate this process by scripting the DNS updates in the failover and failback scripts. You have two options for scripting the DNS updates.
DNS updates can be added to your failover and failback scripts by using the Windows DNSCMD command as long as dynamic updates are enabled on the DNS zone and the account running the Double-Take service is a member of the DNSAdmins security group. (See your Microsoft documentation to verify if dynamic updates are enabled.) Add the following commands to your failover and failback scripts to delete the host and reverse lookup entries and add new entries associating the source to the target.
Use the following variable substitutions.
For example, suppose you had the following environment.
You would add the following to your failover script to delete the host and reverse lookup entries and add new entries associating the source to the target.
dnscmd DNSServer.domain.com /RecordDelete domain.com alpha A 192.168.1.108 /f dnscmd DNSServer.domain.com /RecordDelete 192.168.in-addr.arpa 108.1 PTR alpha.domain.com /f dnscmd DNSServer.domain.com /RecordAdd domain.com alpha A 116.123.2.47 dnscmd DNSServer.domain.com /RecordAdd 116.123.in-addr.arpa 47.2 PTR alpha.domain.com |
You would add the following to your failback script to delete the host and reverse lookup entries and add new entries associating the source with its original identity.
dnscmd DNSServer.domain.com /RecordDelete domain.com alpha A 116.123.2.47 /f dnscmd DNSServer.domain.com /RecordDelete 116.123.in-addr.arpa 47.2 PTR alpha.domain.com /f dnscmd DNSServer.domain.com /RecordAdd domain.com alpha A 192.168.1.108 dnscmd DNSServer.domain.com /RecordAdd 192.168.in-addr.arpa 108.1 PTR alpha.domain.com |
See your Windows documentation or the Microsoft web site for more details on the DNSCMD command.
DNS updates can be added to your failover and failback scripts by using the Double-Take Availability DFO utility as long as the utility has been registered and the proper privileges are configured.
Add the appropriate DFO command to your failover script using the following syntax.
Command
DFO
Description
Used in scripts to failover DNS server name
Syntax
DFO [/DNSSRVNAME <dns_server_name>] /SRCNAME <source_fqd_name> /SRCIP <source_ip> /TARIP <target_ip> /TARNAME <target_fqd_name> [/RECORDTYPE <rec_type>] [/USERNAME <user_name> /PASSWORD <password>] [/DNSZONE <zone_name>] [/DNSDOMAIN <domain_name>] [/LOGFILE <file_name>] /FAILBACK [fb_switch] [/SETPASSWORD <user_name> <password>[machine][file]] [/GETPASSWORD] [/LOCK] [/UNLOCK] /TRUSTEE <trustee_name> [/VERBOSE] [/FLUSHDNS /MACHINE <machine_fqd_name>] [/TTL <seconds>] [/ADDOMAIN <active_directory_domain_name> [/SOURCEDN <source_domain_name> [/TEST] [/DEBUG] [/HELP]
Options
Examples