Skip to content

Latest commit

 

History

History
105 lines (82 loc) · 2.4 KB

File metadata and controls

105 lines (82 loc) · 2.4 KB

DSC Resource 'DnsServerPrimaryZones'

DnsServerPrimaryZones manages standalone file-backed primary DNS zones.

When to use 'DnsServerPrimaryZones'

Use this resource when you need to create file-backed (non-AD-integrated) primary DNS zones. These are used on standalone DNS servers not joined to Active Directory, or for zones that should not be stored in AD. For AD-integrated zones, use DnsServerAdZones instead.

Source

DSC Resource

Documentation

Table 1. Attributes of category 'DnsServerPrimaryZones'
Parameter Attribute DataType Description Allowed Values

PrimaryZones

Mandatory

Hashtable[]

List of DNS Primary Zones

Table 2. Attributes of category 'DnsServerPrimaryZones/PrimaryZones'
Parameter Attribute DataType Description Allowed Values

Name

Key

String

Name of the primary DNS zone

ZoneFile

String

Name of the primary DNS zone file.

Default: ZoneName.dns

DynamicUpdate

String

Primary zone dynamic DNS update option.

  • None (default)

  • NonSecureAndSecure

Ensure

String

Whether the primary zone should be present or removed

  • Present (default)

  • Absent

Example
DnsServerPrimaryZones:
  PrimaryZones:
    - Name:          PrimaryZone1
      ZoneFile:      MyZone.dns
      DynamicUpdate: NonSecureAndSecure
      Ensure:        Present

    - Name:          PrimaryZone2