Windows Server 2016 智能DNS(五)
咱們前面幾篇文章介紹瞭如何Windows Server 2016 智能DNS的相關配置介紹,今天繼續介紹Windows Server 2016 智能DNS的配置管理,前面咱們介紹了根據本身的需求來配置相關功能,可是對於配置的相關命令咱們如何修改呢?固然既然有建立,確定會有相關的編輯、刪除命令,那今天沒我就來講說相關記錄的編輯操做。ide
首先是子網:
首先查看子網Get-DnsServerClientSubnet
若是對現有的子網進行增長及刪除咱們有了解到參數3d
-action add 是增長子網 -action remove是刪除子網
首先是增長:set-dnsserverclientsubnet -name "USSubnet" -action add -IPv4Subnet "192.168.7.0/24"
而後是刪除set-dnsserverclientsubnet -name "USSubnet" -action remove -IPv4Subnet "192.168.7.0/24"
固然刪除子網的命令就簡單了Remove-DnsServerClientSubnet -Name "SubnetName"
2.而後就是DNS區域查看:Get-DnsServerZoneScope -ZoneName "byssoft.com"
code
增長:add-DnsServerZoneScope -ZoneName "ZoneName" 刪除:remove-DnsServerZoneScope -ZoneName "ZoneName"
3.DNS 區域記錄:
首先查看Get-DnsServerResourceRecord -ZoneName "byssoft.com" -zonescope "USZoneScope"
增長:
編輯:修改IP地址server
$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"
blog