Windows Server 2016 智能DNS(四)
阿新 • • 發佈:2018-03-11
windows server 2016 DNS Windows Server 2016 智能DNS(四)
我們前面幾篇文章介紹了如何Windows Server 2016 智能DNS的相關配置介紹,今天繼續介紹Windows Server 2016 智能DNS的配置管理,前面我們介紹了根據自己的需求來配置相關功能,但是對於配置的相關命令我們如何修改呢?當然既然有創建,肯定會有相關的編輯、刪除命令,那今天沒我就來說說相關記錄的編輯操作。
![技術分享圖片](http://i2.51cto.com/images/blog/201803/11/ea23ef565a22c22e0e09c4d6547a9587.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
然後是刪除
![技術分享圖片](http://i2.51cto.com/images/blog/201803/11/217e3c07d72e105b7bd5b1ac8af69490.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
當然刪除子網的命令就簡單了
2.然後就是DNS區域
我們前面幾篇文章介紹了如何Windows Server 2016 智能DNS的相關配置介紹,今天繼續介紹Windows Server 2016 智能DNS的配置管理,前面我們介紹了根據自己的需求來配置相關功能,但是對於配置的相關命令我們如何修改呢?當然既然有創建,肯定會有相關的編輯、刪除命令,那今天沒我就來說說相關記錄的編輯操作。
首先是子網:
首先查看子網Get-DnsServerClientSubnet
如果對現有的子網進行增加及刪除我們有了解到參數
-action add 是增加子網
-action remove是刪除子網
首先是增加:set-dnsserverclientsubnet -name "USSubnet" -action add -IPv4Subnet "192.168.7.0/24"
![技術分享圖片](http://i2.51cto.com/images/blog/201803/11/ea23ef565a22c22e0e09c4d6547a9587.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
然後是刪除
set-dnsserverclientsubnet -name "USSubnet" -action remove -IPv4Subnet "192.168.7.0/24"
![技術分享圖片](http://i2.51cto.com/images/blog/201803/11/217e3c07d72e105b7bd5b1ac8af69490.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
當然刪除子網的命令就簡單了
Remove-DnsServerClientSubnet -Name "SubnetName"
2.然後就是DNS區域
查看:Get-DnsServerZoneScope -ZoneName "byssoft.com"
![技術分享圖片](http://i2.51cto.com/images/blog/201803/11/82eda4b8177fb7b64c18aecf08b94d23.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
增加:add-DnsServerZoneScope -ZoneName "ZoneName" 刪除:remove-DnsServerZoneScope -ZoneName "ZoneName"
3.DNS 區域記錄:
首先查看Get-DnsServerResourceRecord -ZoneName "byssoft.com" -zonescope "USZoneScope"
增加:
編輯:修改IP地址
$Record = Get-DnsServerResourceRecord -ZoneName "byssoft.com" -Name "g" -ZoneScope "USZoneScope" $NewRecord = $Record.Clone() $NewRecord.RecordData.IPv4Address = ‘192.168.20.20‘ Set-DnsServerResourceRecord -ZoneName byssoft.com -ZoneScope "USZoneScope" -OldInputObject $Record -NewInputObject $NewRecord
刪除:Remove-DnsServerResourceRecord -ZoneName "byssoft.com" -RRType "A" -name "g" -RecordData "192.168.20.20" -ZoneScope "USZoneScope"
Windows Server 2016 智能DNS(四)