Windows Server 2016 智能DNS(四)

來源:互聯網
上載者:User

標籤:windows server 2016   DNS   

Windows Server 2016 智能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"

然後是刪除
set-dnsserverclientsubnet -name "USSubnet" -action remove -IPv4Subnet "192.168.7.0/24"

當然刪除子網的命令就簡單了
Remove-DnsServerClientSubnet -Name "SubnetName"
2.然後就是DNS地區
查看:Get-DnsServerZoneScope -ZoneName "byssoft.com"

增加: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(四)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.