Skip to content

Latest commit

 

History

History
129 lines (103 loc) · 2.73 KB

DnsServerAdZones.adoc

File metadata and controls

129 lines (103 loc) · 2.73 KB

DSC Resource 'DnsServerAdZones'

DnsServerAdZones sets AD integrated zones on a given DNS server.

Source

DSC Resource

Documentation

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

AdZones

Hashtable[]

DomainCredential

PSCredential

Specifies the credential to use to create the AD zones on a remote computer.
This parameter can only be used when you also are passing a value for the ComputerName parameter of the AD zone.

Table 2. Attributes of category 'DnsServerAdZones/AdZones'
Parameter Attribute DataType Description Allowed Values

Name

Key

String

Name of the AD DNS zone

Ensure

String

Whether the AD zone should be present or removed

  • Present (default)

  • Absent

DynamicUpdate

String

AD zone dynamic DNS update option.

  • None

  • NonSecureAndSecure

  • Secure (default)

ReplicationScope

Mandatory

String

AD zone replication scope option.

  • Custom

  • Domain

  • Forest

  • Legacy

DirectoryPartitionName

Name of the directory partition on which to store the zone.
Use this parameter when the ReplicationScope parameter has a value of Custom.

ComputerName

Specifies a DNS server.
If you do not specify this parameter, the command runs on the local system.

Credential

PSCredential

Specifies the credential to use to create the AD zone on a remote computer.
This parameter can only be used when you also are passing a value for the ComputerName parameter.

Example
DnsServerAdZones:
  AdZones:
  - Name: cms.contoso.com
    DynamicUpdate: Secure
    ReplicationScope: Forest
  - Name: 30.168.192.in-addr.arpa
    DynamicUpdate: Secure
    ReplicationScope: Forest
  DomainCredential: '[ENC=PE9ianMgVmVyc2lvbj...=]'