Windows 2025
Sponsored Link

DNS Server : Add Reverse lookup Zone2024/11/28

 

Add Reverse lookup Zone.

On CUI configuration, Run PowerShell with Admin Privilege and Configure like follows.

[1] For example, Add Reverse lookup Zone with settings of network [10.0.0.0/24], Zone-File [0.0.10.in-addr.arpa.dns].
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> Add-DnsServerPrimaryZone -NetworkID 10.0.0.0/24 -ZoneFile "0.0.10.in-addr.arpa.dns" -DynamicUpdate None -PassThru 

ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
0.0.10.in-addr.arpa                 Primary         False           False           True                 False

PS C:\Users\Administrator> Get-DnsServerZone 

# [0.0.10.in-addr.arpa] has been added
ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
0.0.10.in-addr.arpa                 Primary         False           False           True                 False
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                           Primary         False           False           False                False
TrustAnchors                        Primary         False           False           False                False

# if remove it, run like follows
PS C:\Users\Administrator> Remove-DnsServerZone "0.0.10.in-addr.arpa" -PassThru 

Confirm
This will also remove all the records in the zone and the server will no longer host the zone, do you want to continue?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
0.0.10.in-addr.arpa                 Primary         False           False           True                 False
DNS Server : Add Reverse lookup Zone (GUI)
 

On GUI configuration, set like follows.

[2] Run Server Manager and select [Tools] - [DNS].
[2] Select own Hostname on the left pane and right-click the own Hostname to show menu on the left pane, then select [New Zone...].
[3] Click [Next] button.
[4] Check a box [Primary zone] and click [Next] button.
[5] Check a box [Reverse lookup Zone] and click [Next] button.
[6] On this example, configure IPv4 zone, Check a box [IPv4 Reverse lookup Zone] and click [Next] button.
[7] Input [Network ID]. The example follows is for the case 10.0.0.0/24.
[8] Set zone-file-name and click [Next] button. It's OK to keep default for zone-file-name.
[9] Click [Next] button with keeping default.
[10] Click [Finish] button.
[11] A new zone has been added under the Reverse lookup Zone.
Matched Content