Windows 2019
Sponsored Link

DNS Server : Configure Secondary Zone2019/03/21

 
Configure Secondary Zone on DNS Secondary Host.
This example is based on the environment like follows.
                                   |
+----------------------+           |           +----------------------+
|  [   DNS Master   ]  |10.0.0.101 | 10.0.0.110|  [  DNS Secondary ]  |
|     rx-7.srv.world   +-----------+-----------+    rx-8.srv.world    |
|                      |                       |                      |
+----------------------+                       +----------------------+

 
On CUI configuration, Run PowerShell with Admin Privilege and Configure like follows.
[1] By default, Name-Servers that are added in each Zone setting on DNS Master Host are the allowed Hosts to be transfered Zone files.
So Add DNS Secondary Host on Name-Server setting on DNS Master Host first.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# add [rx-8.srv.world] host as name-server in [srv.world] zone
PS C:\Users\Administrator> Add-DnsServerResourceRecord -Name "@" -NS -ZoneName "srv.world" -NameServer "rx-8.srv.world" -PassThru 

HostName                  RecordType Type       Timestamp            TimeToLive      RecordData
--------                  ---------- ----       ---------            ----------      ----------
@                         NS         2          0                    01:00:00        rx-8.srv.world.

PS C:\Users\Administrator> Get-DnsServerResourceRecord -ZoneName "srv.world" | Format-Table -AutoSize -Wrap 

# NS record has beed added
HostName RecordType Type Timestamp TimeToLive RecordData
-------- ---------- ---- --------- ---------- ----------
@        NS         2    0         01:00:00   rx-7.srv.world.
@        NS         2    0         01:00:00   rx-8.srv.world.
@        SOA        6    0         01:00:00   [7][rx-7.srv.world.][hostmaster.srv.world.]
rx-7     A          1    0         01:00:00   10.0.0.101
rx-8     A          1    0         01:00:00   10.0.0.110
[2] On DNS Secondary Host, Configure Secondary Zone.
Before it, Install DNS Server feature on Secondary Host, too.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

# add secondary zone of [srv.world]
PS C:\Users\Administrator> Add-DnsServerSecondaryZone -Name "srv.world" -ZoneFile "srv.world.dns" -MasterServers 10.0.0.101 -PassThru 

ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
srv.world                           Secondary       False           False           False

PS C:\Users\Administrator> Get-DnsServerZone 

# secondary zone has beed added
ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
0.in-addr.arpa                      Primary         True            False           True                 False
127.in-addr.arpa                    Primary         True            False           True                 False
255.in-addr.arpa                    Primary         True            False           True                 False
srv.world                           Secondary       False           False           False
TrustAnchors                        Primary         False           False           False                False
DNS Server : Configure Secondary Zone (GUI)
 
On GUI configuration, set like follows.
[3] Configure on DNS Master Host.
Run Server Manager and select [Tools] - [DNS], next right-click the zone name you'd like to add secondary zone and select [Properties].
[4] Move to [Zone Transfers] tab, then it's possible to see the setting like follows. Move to [Name Servers] tab.
[5] Click [Add] button.
[6] Input Hostname and IP address of Secondary Server and Click [OK].
[7] Name Server has been added. next, Move to DNS Secondary Host.
[8] On DNS Secondary Host, Run Server Manager and select [Tools] - [DNS], next right-click the zone you'd like to add secondary zone and select [New Zone...].
[9] Click [Next] button.
[10] Check a Box [Secondary zone] and go [Next].
[11] Input a zone name you'd like to add secondary replica and go [Next].
[12] Input DNS Master Host's IP address and go [Next].
[13] Click [Finish] button.
[14] Zone files are transfered on secondary Host if settings are OK.
Matched Content