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] ゾーンが登録された
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
# もし削除する場合は以下
PS C:\Users\Administrator> Remove-DnsServerZone "0.0.10.in-addr.arpa" -PassThru
Confirm
この操作を行うと、ゾーン内のレコードもすべて削除され、サーバーはゾーンをホストしなくなります。続行しますか?
[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
|