DNS Server : Configure Secondary Zone2021/12/23 |
Configure Secondary Zone on DNS Secondary Host.
This example is based on the environment like follows. | +----------------------+ | +----------------------+ | [ DNS Primary ] |10.0.0.101 | 10.0.0.102| [ 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 Primary Host are the allowed Hosts to be transfered Zone files. So Add DNS Secondary Host on Name-Server setting on DNS Primary 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. @ SOA 6 0 01:00:00 [11][rx-7.srv.world.][hostmaster.srv.world.] fd3s CNAME 5 0 01:00:00 rx-7.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.102 |
[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 Primary 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 click the [Resolve] button, then IP address of the Host and [OK] are shown if no ploblem, that's 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 Primary Host's IP address and go [Next]. |
[13] | Click [Finish] button. |
[14] | Zone files are transfered on secondary Host if settings are OK. |
Sponsored Link |
|