HP StorageWorks Storage Mirroring Applications Notes - Guidelines for using MicroSoft Clustered Distributed File System with Storage Mirroring (T2558-96059, April 2007)

sample_WAN_preback.bat
rem ***SAMPLE*** pre-failback script for cluster-to-standalone WAN failover with DFS
rem This sample batch file is provided as an example only. Because no two
rem environments or configurations are exactly the same, you MUST modify
rem this script in order to make the solution work in your environment.
net stop
DFS
rem These commands remove the target server mapping and add the source virtual server.
dnscmd DNSServer /RecordDelete domain.com SrceSrvrName A 143.223.9.40 /f
dnscmd DNSServer /RecordDelete 223.143.in-addr.arpa 40.9 PTR SrceSrvrName.domain.com /f
dnscmd DNSServer /RecordAdd domain.com SrceSrvrName A 169.254.10.79
dnscmd DNSServer /RecordAdd 254.169.in-addr.arpa 79.10 PTR SrceSrvrName.domain.com
ipconfig /flushdns