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 |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of DNS Primary Zones |
| 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: |
|
DynamicUpdate |
String |
Primary zone dynamic DNS update option. |
|
|
Ensure |
String |
Whether the primary zone should be present or removed |
|
Example
DnsServerPrimaryZones:
PrimaryZones:
- Name: PrimaryZone1
ZoneFile: MyZone.dns
DynamicUpdate: NonSecureAndSecure
Ensure: Present
- Name: PrimaryZone2