To create the
zone distribution, use
zone-dist
name
create
primary-cluster (The primary cluster can also be the HA DNS
pair). For example:
nrcmd> zone-dist dist-2 create Chicago-cluster
To set the primary servers of secondary, use zone-dist
name
set
primary-servers= addresses, separating the addresses with commas. For example:
nrcmd> zone-dist zone-dist-2 set primary-servers=192.168.50.1,192.168.60.1
To add the
secondary server, use
zone-dist
name
addSecondary
secondary-cluster. For example:
nrcmd> zone-dist zone-dist-2 AddSecondary Boston-cluster
You must
associate the zone distribution directly with the zone or zone template. Use
zone
name
set
dist-map= zone-dist-list or
zone-template
name
set
dist-map= zone-dist-list, separating the zone distribution entries
with commas. For example:
nrcmd> zone example.com set dist-map=zone-dist-2
nrcmd> zone-template zone-template-1 set dist-map=zone-dist-2
To synchronize
the zone distributions, use
zone-dist
name
sync . You can
do a synchronization in update, complete, or exact mode, and you can exclude
RRs and secondary zones:
- At the local cluster, this
synchronizes staged edits to the DNS server and primary zones to secondaries.
Regardless of the synchronization mode, this always synchronizes the exact list
of authoritative zones.
- At the regional cluster,
this synchronizes primary zones with the local clusters, and primaries to
secondaries. This replaces primary zones at the local cluster in Update and
Complete modes, and deletes extra primary zones at the local cluster in Exact
mode.
- For secondary zones, the same synchronization logic occurs at the local and regional clusters. In Update mode, this ensures
that corresponding secondary zones exist on the server. In Complete mode, existing zones are updated to use the Primary Servers
list (primary servers of secondary) specified by the zone distribution map. In Exact mode, any zones not matching the distribution
map are deleted.
For example:
nrcmd> zone-dist zone-dist-1 sync exact no-rrs no-secondaries