首页 > 代码库 > dns policy
dns policy
Add-DnsServerClientSubnet -Name "UKSubnet" -IPv4Subnet "172.16.0.0/24"
Add-DnsServerClientSubnet -Name "CanadaSubnet" -IPv4Subnet "172.16.18.0/24"
Add-DnsServerZoneScope -ZoneName "easthome.com" -Name "UKZoneScope"
Add-DnsServerZoneScope -ZoneName "easthome.com" -Name "CanadaZoneScope"
Add-DnsServerResourceRecord -ZoneName "easthome.com" -A -Name "www" -IPv4Address "172.16.0.41" -ZoneScope "UKZoneScope"
Add-DnsServerResourceRecord -ZoneName "easthome.com" -A -Name "www" -IPv4Address "172.16.18.17" -ZoneScope "CanadaZoneScope"
Add-DnsServerQueryResolutionPolicy -Name "UKPolicy" -Action ALLOW -ClientSubnet "eq,UKSubnet" -ZoneScope "UKZoneScope,1" -ZoneName "easthome.com"
Add-DnsServerQueryResolutionPolicy -Name "CanadaPolicy" -Action ALLOW -ClientSubnet "eq,CanadaSubnet" -ZoneScope "CanadaZoneScope,1" -ZoneName easthome.com
本文出自 “1+1=?” 博客,请务必保留此出处http://lianggj.blog.51cto.com/176264/1916342
dns policy