beautypg.com

Windows dnscmd command – HP Storage Mirroring Software User Manual

Page 345

background image

Workload protection

Page 344 of 677

Windows DNSCMD command

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 Storage Mirroring 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.

l

dnscmd

DNS_server’s_FQDN

/RecordDelete

DNS_zone source_server_name

A

source_server_IP_address

/f

l

dnscmd

DNS_server’s_FQDN

/RecordDelete

www.xxx

.in-addr.arpa

zzz.yyy

PTR

source_server’s_FQDN

/f

l

dnscmd

DNS_server’s_FQDN

/RecordAdd

DNS_zone source_server_name

A

target_server_IP_address

l

dnscmd

DNS_server’s_FQDN

/RecordAdd

aaa.bbb

.in-addr.arpa

ddd.ccc

PTR

source_server’s_FQDN

Use the following variable substitutions.

l

DNS_server’s_FQDN

— The fully qualified domain name of the DNS server

l

DNS_zone

—The name of the DNS zone

l

source_server_name

—The name of the source server

l

source_server_IP_address

—The IP address on the source

l

www.xxx

—The first two octets of the source’s IP address. For example, if the

source’s IP address is 192.168.1.108, this variable would be 192.168.

l

zzz.yyy

—The last two octets, in reverse order, of the source’s IP address. For

example, if the source’s IP address is 192.168.1.108, this variable would be 108.1.

l

source_server’s_FQDN

—The fully qualified domain name of the source server

l

target_server_IP_address

—The IP address on the target

l

aaa.bbb

—The first two octets of the target’s IP address. For example, if the target’s

IP address is 116.123.2.47, this variable would be 116.123.

l

ddd.ccc

— The last two octets, in reverse order, of the target’s IP address. For

example, if the target’s IP address is 116.123.2.47, this variable would be 47.2.

For example, suppose you had the following environment.

l

Full qualified domain name of the source—Alpha.domain.com

l

Source IP address—192.168.1.108

l

Fully qualified domain name of the target—Beta.domain.com

l

Target IP address—116.123.2.47