Windows Server 2016 智能DNS(五)

來源:互聯網
上載者:User

標籤:windows server 2016   DNS   

Windows Server 2016 智能DNS(五)
我們前面幾篇文章介紹了如何Windows Server 2016 智能DNS的相關配置介紹,今天繼續介紹Windows Server 2016 智能DNS的組態管理,前面一篇我們介紹了根據自己的需求來配置相關功能,那今天繼續介紹相關記錄的編輯操作。
前面介紹的是子網、子網地區、及子網地區的記錄進行的日常管理介紹,這些都是基本,最主要的還是策略,所以我們今天介紹策略的介紹:
Policy:
查看:get-DnsServerQueryResolutionPolicy -ZoneName "byssoft.com"

我們發現只能查看策略的大概,增加fl及tb後都是不行
那我們如何查看策略的具體內容:
ne是不等於的意思
eq是等於的意思
通過這條命令我們就可以看出,匹配FQDN不等於www.byssoft.com、e-colgoy.byssoft.com、g.byssoft.com就會匹配下一條策略

$policy = Get-DnsServerQueryResolutionPolicy -ZoneName "byssoft.com" -name "DefaultPolicy"$policy.criteria


策略的優先順序:
查看:get-DnsServerQueryResolutionPolicy -ZoneName "byssoft.com"
策略通過ProcessingOrder來命名優先順序,

更改優先順序:
比如我們要講策略名為:CNPolicy的優先順序調成最低
Set-DnsServerQueryResolutionPolicy -name "CNPolicy" -ZoneName "byssoft.com" -processingOrder 4

接下來就是禁用策略
策略的層級有基於Zone層級的,也有基於域層級的
Disable-DnsServerPolicy -name "CNPolicy" -ZoneName "byssoft.com" -level zone


接下來就是啟用策略
enable-DnsServerPolicy -name "CNPolicy" -ZoneName "byssoft.com" -level zone


最後我們在說說策略增加:
Add-DnsServerQueryResolutionPolicy -Name "PolicyName" -Action ALLOW -ClientSubnet "eq,CNSubnet" -ZoneScope "CNSubnetScope,1" -ZoneName "byssoft.com"
策略的刪除:
remove-DnsServerQueryResolutionPolicy -Name "PolicyName" -Action ALLOW -ClientSubnet "eq,CNSubnet" -ZoneScope "CNSubnetScope,1" -ZoneName "byssoft.com"
策略的修改:
set-DnsServerQueryResolutionPolicy -Name "DefaultPolicy" -ZoneScope "byssoft.com,1" -FQDN “ne,www.byssoft.com,e-cology.byssoft.com” -ZoneName "byssoft.com"

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.