Skip to content

xDnsServerZoneScope

dscbot edited this page Feb 20, 2021 · 4 revisions

xDnsServerZoneScope

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String Specifies the name of the Zone Scope.
ZoneName Key String Specify the existing DNS Zone to add a scope to.
Ensure Write String Should this DNS Server Zone Scope be present or absent Present, Absent

Description

The xDnsServerZoneScope DSC resource manages the zone scope on an existing zone on the Domain Name System (DNS) server

The name of the scope should adhere to the same conventions as the zone name. The scope name cannot be same as the zone name to which it is attached.

Requirements

  • Target machine must be running Windows Server 2016 or later.

Examples

Example 1

This configuration will manage a DNS zone scope

Configuration xDnsServerZoneScope_config
{
    Import-DscResource -ModuleName 'xDnsServer'

    xDnsServerZoneScope 'ZoneScope1'
    {
        Name     = 'contoso_NorthAmerica'
        ZoneName = 'contoso.com'
        Ensure   = 'Present'
    }
}
Clone this wiki locally