溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Windows Server 2016 智能DNS(五)

發布時間:2020-08-17 09:43:42 來源:網絡 閱讀:1957 作者:高文龍 欄目:系統運維

Windows Server 2016 智能DNS(五)
我們前面幾篇文章介紹了如何Windows Server 2016 智能DNS的相關配置介紹,今天繼續介紹Windows Server 2016 智能DNS的配置管理,前面我們介紹了根據自己的需求來配置相關功能,但是對于配置的相關命令我們如何修改呢?當然既然有創建,肯定會有相關的編輯、刪除命令,那今天沒我就來說說相關記錄的編輯操作。

首先是子網:
首先查看子網
Get-DnsServerClientSubnet
Windows Server 2016 智能DNS(五)
如果對現有的子網進行增加及刪除我們有了解到參數

-action add 是增加子網
-action remove是刪除子網

首先是增加:
set-dnsserverclientsubnet -name "USSubnet" -action add -IPv4Subnet "192.168.7.0/24"
Windows Server 2016 智能DNS(五)
然后是刪除
set-dnsserverclientsubnet -name "USSubnet" -action remove -IPv4Subnet "192.168.7.0/24"
Windows Server 2016 智能DNS(五)
當然刪除子網的命令就簡單了
Remove-DnsServerClientSubnet -Name "SubnetName"
2.然后就是DNS區域
查看:Get-DnsServerZoneScope -ZoneName "byssoft.com"
Windows Server 2016 智能DNS(五)

增加:add-DnsServerZoneScope -ZoneName "ZoneName"
刪除:remove-DnsServerZoneScope -ZoneName "ZoneName"

3.DNS 區域記錄:
首先查看
Get-DnsServerResourceRecord -ZoneName "byssoft.com" -zonescope "USZoneScope"
Windows Server 2016 智能DNS(五)
增加:
Windows Server 2016 智能DNS(五)
編輯:修改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

Windows Server 2016 智能DNS(五)
刪除:
Remove-DnsServerResourceRecord -ZoneName "byssoft.com" -RRType "A" -name "g" -RecordData "192.168.20.20" -ZoneScope "USZoneScope"
Windows Server 2016 智能DNS(五)
Windows Server 2016 智能DNS(五)

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女