xdnsserver
Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsc-xdnsserver', '2.0.0-0-0'
Learn more about managing modules with a PuppetfileDocumentation
xdnsserver
Table of Contents
Description
This is an auto-generated module, using the Puppet DSC Builder to vendor and expose the xDnsServer PowerShell module's DSC resources as Puppet resources. The functionality of this module comes entirely from the vendored PowerShell resources, which are pinned at v2.0.0. The PowerShell module describes itself like this:
This module contains DSC resources for the management and configuration of Windows Server DNS Server.
For information on troubleshooting to determine whether any encountered problems are with the Puppet wrapper or the DSC resource, see the troubleshooting section below.
Requirements
This module, like all auto-generated Puppetized DSC modules, relies on two important technologies in the Puppet stack: the Puppet Resource API and the puppetlabs/pwshlib Puppet module.
The Resource API provides a simplified option for writing types and providers and is responsible for how this module is structured. The Resource API ships inside of Puppet starting with version 6. While it is technically possible to add the Resource API functionality to Puppet 5.5.x, the DSC functionality has not been tested in this setup. For more information on the Resource API, review the documentation.
The module also depends on the pwshlib module. This Puppet module includes two important things: the ruby-pwsh library for running PowerShell code from ruby and the base provider for DSC resources, which this module leverages.
All of the actual work being done to call the DSC resources vendored with this module is in this file from the pwshlib module. This is important for troubleshooting and bug reporting, but doesn't impact your use of the module except that the end result will be that nothing works, as the dependency is not installed alongside this module!
Long File Path Support
Several PowerShell modules with DSC Resources end up with very long file paths once vendored, many of which exceed the 260 character limit for file paths. Luckily in Windows 10 (build 1607+), Windows Server 2016 (build 1607+), and Windows Server 2019 there is now an option for supporting long file paths transparently!
We strongly recommend enabling long file path support on any machines using this module to avoid path length issues.
You can set this value using the Puppet registry_value
resource:
registry_value { 'HKLM\System\CurrentControlSet\Control\FileSystem\LongPathsEnabled':
ensure => 'present',
data => [1],
provider => 'registry',
type => 'dword',
}
You can also set this value outside of Puppet by following the Microsoft documentation.
Usage
You can specify any of the DSC resources from this module like a normal Puppet resource in your manifests. The examples below use DSC resources from from the PowerShellGet repository, regardless of what module you're looking at here; the syntax, not the specifics, is what's important.
For reference documentation about the DSC resources exposed in this module, see the Reference Forge tab, or the REFERENCE.md file.
# Include a meaningful title for your resource declaration
dsc_psrepository { 'Add team module repo':
dsc_name => 'foo',
dsc_ensure => present,
# This location is nonsense, can be any valid folder on your
# machine or in a share, any location the SourceLocation param
# for the DSC resource will accept.
dsc_sourcelocation => 'C:\Program Files',
# You must always pass an enum fully lower-cased;
# Puppet is case sensitive even when PowerShell isn't
dsc_installationpolicy => untrusted,
}
dsc_psrepository { 'Trust public gallery':
dsc_name => 'PSGallery',
dsc_ensure => present,
dsc_installationpolicy => trusted,
}
dsc_psmodule { 'Make Ruby manageable via uru':
dsc_name => 'RubyInstaller',
dsc_ensure => present,
}
Credentials
Credentials are always specified as a hash of the username and password for the account. The password must use the Puppet Sensitive type; this ensures that logs and reports redact the password, displaying it instead as <Sensitive [value redacted]>.
dsc_psrepository { 'PowerShell Gallery':
dsc_name => 'psgAllery',
dsc_installationpolicy => 'Trusted',
dsc_psdscrunascredential => {
user => 'apple',
password => Sensitive('foobar'),
},
}
Class-Based Resources
Class-based DSC Resources can be used like any other DSC Resource in this module, with one important note:
Due to a bug in calling class-based DSC Resources by path instead of module name, each call to Invoke-DscResource
needs to temporarily munge the system-level environment variable for PSModulePath
;
the variable is reset prior to the end of each invocation.
CIM Instances
Because the CIM instances for DSC resources are fully mapped, the types actually explain fairly precisely what the shape of each CIM instance has to be - and, moreover, the type definition means that you get checking at catalog compile time. Puppet parses CIM instances are structured hashes (or arrays of structured hashes) that explicitly declare their keys and the valid types of values for each key.
So, for the dsc_accesscontrolentry
property of the dsc_ntfsaccessentry
type, which has a MOF type of NTFSAccessControlList[]
, Puppet defines the CIM instance as:
Array[Struct[{
accesscontrolentry => Array[Struct[{
accesscontroltype => Enum['Allow', 'Deny'],
inheritance => Enum['This folder only', 'This folder subfolders and files', 'This folder and subfolders', 'This folder and files', 'Subfolders and files only', 'Subfolders only', 'Files only'],
ensure => Enum['Present', 'Absent'],
cim_instance_type => 'NTFSAccessControlEntry',
filesystemrights => Array[Enum['AppendData', 'ChangePermissions', 'CreateDirectories', 'CreateFiles', 'Delete', 'DeleteSubdirectoriesAndFiles', 'ExecuteFile', 'FullControl', 'ListDirectory', 'Modify', 'Read', 'ReadAndExecute', 'ReadAttributes', 'ReadData', 'ReadExtendedAttributes', 'ReadPermissions', 'Synchronize', 'TakeOwnership', 'Traverse', 'Write', 'WriteAttributes', 'WriteData', 'WriteExtendedAttributes']]
}]],
forceprincipal => Optional[Boolean],
principal => Optional[String],
}]]
A valid example of that in a puppet manifest looks like this:
dsc_accesscontrollist => [
{
accesscontrolentry => [
{
accesscontroltype => 'Allow',
inheritance => 'This folder only',
ensure => 'Present',
filesystemrights => 'ChangePermissions',
cim_instance_type => 'NTFSAccessControlEntry',
},
],
principal => 'veryRealUserName',
},
]
For more information about using a built module, check out our narrative documentation.
Properties
Note that the only properties specified in a resource declaration which are passed to Invoke-Dsc are all prepended with dsc.
If a property does _not start with dsc_ it is used to control how Puppet interacts with DSC/other Puppet resources - for example,
specifying a unique name for the resource for Puppet to distinguish between declarations or Puppet metaparameters (notifies,
before, etc).
Validation Mode
By default, these resources use the property validation mode, which checks whether or not the resource is in the desired state the same way most Puppet resources are validated;
by comparing the properties returned from the system with those specified in the manifest.
Sometimes, however, this is insufficient;
many DSC Resources return data that does not compare properly to the desired state (some are missing properties, others are malformed, some simply cannot be strictly compared).
In these cases, you can set the validation mode to resource
, which falls back on calling Invoke-DscResource
with the Test
method and trusts that result.
When using the resource
validation mode, the resource is tested once and will then treat all properties of that resource as in sync (if the result returned true
) or not in sync.
This loses the granularity of change reporting for the resource but prevents flapping and unexpected behavior.
# This will flap because the DSC resource never returns name in SecurityPolicyDsc v2.10.0.0
dsc_securityoption { 'Enforce Anonoymous SID Translation':
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
# This will idempotently apply
dsc_psrepository { 'PowerShell Gallery':
validation_mode => 'resource',
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
It is important to note that this feature is only supported with a version of puppetlabs-pwshlib
equal to or higher than 0.9.0
, in which the supporting code for the DSC Base Provider to implement custom insync was shipped.
Finally, while this module's metadata says that the supported Puppet versions are 6.0.0 and up, the implementation of the validation_mode
parameter relies on the custom_insync
feature of the Puppet Resource API.
The custom_insync
feature first shipped in the puppet-resource_api
version 1.8.14
, which itself is only included in Puppet versions equal to or newer than 6.23.0
and 7.8.0
for the 6x and 7x platforms respectively.
Using this module against older Puppet versions will result in a warning (example below) and only use the default property-by-property change reporting, regardless of the setting of validation_mode
.
Warning: Unknown feature detected: ["custom_insync"]
Troubleshooting
In general, there are three broad categories of problems:
- Problems with the way the underlying DSC resource works.
- Problems with the type definition, where you can't specify a valid set of properties for the DSC resource
- Problems with calling the underlying DSC resource - the parameters aren't being passed correctly or the resource can't be found
Unfortunately, problems with the way the underlying DSC resource works are something we can't help directly with. You'll need to file an issue with the upstream maintainers for the PowerShell module.
Problems with the type definition are when a value that should be valid according to the DSC resource's documentation and code is not accepted by the Puppet wrapper. If and when you run across one of these, please file an issue with the Puppet DSC Builder; this is where the conversion happens and once we know of a problem we can fix it and regenerate the Puppet modules. To help us identify the issue, please specify the DSC module, version, resource, property and values that are giving you issues. Once a fix is available we will regenerate and release updated versions of this Puppet wrapper.
Problems with calling the underlying DSC resource become apparent by comparing <value passed in in puppet>
with <value received by DSC>
.
In this case, please file an issue with the puppetlabs/pwshlib module, which is where the DSC base provider actually lives.
We'll investigate and prioritize a fix and update the puppetlabs/pwshlib module.
Updating to the pwshlib version with the fix will immediately take advantage of the improved functionality without waiting for this module to be reconverted and published.
For specific information on troubleshooting a generated module, check the troubleshooting guide for the puppet.dsc module.
Known Limitations
Currently, because of the way Puppet caches files on agents, use of the legacy puppetlabs-dsc
module is not compatible with this or any auto-generated DSC module.
Inclusion of both will lead to pluginsync conflicts.
Right now, if you have the same version of a PowerShell module with class-based DSC Resources in your PSModulePath as vendored in a Puppetized DSC Module, you cannot use those class-based DSC Resources from inside of Puppet due to a bug in DSC which prevents using a module by path reference instead of name. Instead, DSC will see that there are two DSC Resources for the same module and version and then error out.
Configuring the LCM
In order for a Puppetized DSC module to function, the DSC Local Configuration Manager (LCM) RefreshMode
must be set to either Push
or Disabled
.
The default value for RefreshMode
in WMF 5.0 and WMF 5.1 is Push
- so if it has not been set to anything else then there is no action needed on your part.
However if the value of the LCM has been set to anything other than Push
then the module will not function and so the value must either be changed back or disabled.
The Puppetized DSC modules use the Invoke-DscResource
cmdlet to invoke DSC Resources of the target machine.
If the RefreshMode
is set to Pull
, DSC Resources will only run from a DSC Pull Server - in this setting DSC does not allow any DSC Resources to be run interactively on the host.
Module Installation
If you're using this module with Puppet Enterprise and Code Manager, everything should "just work" - no errors or issues acquiring and deploying this or any Puppetized DSC module to nodes.
Unfortunately, due a bug in minitar which prevents it from unpacking archives with long file paths, both r10k
and serverless Puppet (via puppet module install
) methods of installing modules with long path names will fail.
In short, minitar is unable to unpack modules that contain long file paths (though it can create them).
As a workaround, you can retrieve DSC modules from the forge via PowerShell and 7zip:
$ModuleAuthor = 'dsc'
$ModuleName = 'xremotedesktopsessionhost'
$ModuleVersion = '2.0.0-0-1'
$ArchiveFileName = "$ModuleAuthor-$ModuleName-$ModuleVersion.tar.gz"
$DownloadUri = "https://forge.puppet.com/v3/files/$ArchiveFileName"
# Download the module tar.gz to the current directory
Invoke-WebRequest -Uri $DownloadUri -OutFile ./$ArchiveFileName
# Use 7zip to extract the module to the current directory
& 7z x $ArchiveFileName -so | & 7z x -aoa -si -ttar
Reference
Table of Contents
Resource types
dsc_dnsrecorda
: The DSC DnsRecordA resource type. Automatically generated from version 2.0.0dsc_dnsrecordaaaa
: The DSC DnsRecordAaaa resource type. Automatically generated from version 2.0.0dsc_dnsrecordaaaascoped
: The DSC DnsRecordAaaaScoped resource type. Automatically generated from version 2.0.0dsc_dnsrecordascoped
: The DSC DnsRecordAScoped resource type. Automatically generated from version 2.0.0dsc_dnsrecordcname
: The DSC DnsRecordCname resource type. Automatically generated from version 2.0.0dsc_dnsrecordcnamescoped
: The DSC DnsRecordCnameScoped resource type. Automatically generated from version 2.0.0dsc_dnsrecordmx
: The DSC DnsRecordMx resource type. Automatically generated from version 2.0.0dsc_dnsrecordmxscoped
: The DSC DnsRecordMxScoped resource type. Automatically generated from version 2.0.0dsc_dnsrecordptr
: The DSC DnsRecordPtr resource type. Automatically generated from version 2.0.0dsc_dnsrecordsrv
: The DSC DnsRecordSrv resource type. Automatically generated from version 2.0.0dsc_dnsrecordsrvscoped
: The DSC DnsRecordSrvScoped resource type. Automatically generated from version 2.0.0dsc_dnsserveredns
: The DSC DnsServerEDns resource type. Automatically generated from version 2.0.0dsc_dnsserverscavenging
: The DSC DnsServerScavenging resource type. Automatically generated from version 2.0.0dsc_xdnsrecord
: The DSC xDnsRecord resource type. Automatically generated from version 2.0.0dsc_xdnsrecordmx
: The DSC xDnsRecordMx resource type. Automatically generated from version 2.0.0dsc_xdnsserveradzone
: The DSC xDnsServerADZone resource type. Automatically generated from version 2.0.0dsc_xdnsserverclientsubnet
: The DSC xDnsServerClientSubnet resource type. Automatically generated from version 2.0.0dsc_xdnsserverconditionalforwarder
: The DSC xDnsServerConditionalForwarder resource type. Automatically generated from version 2.0.0dsc_xdnsserverdiagnostics
: The DSC xDnsServerDiagnostics resource type. Automatically generated from version 2.0.0dsc_xdnsserverforwarder
: The DSC xDnsServerForwarder resource type. Automatically generated from version 2.0.0dsc_xdnsserverprimaryzone
: The DSC xDnsServerPrimaryZone resource type. Automatically generated from version 2.0.0dsc_xdnsserverroothint
: The DSC xDnsServerRootHint resource type. Automatically generated from version 2.0.0dsc_xdnsserversecondaryzone
: The DSC xDnsServerSecondaryZone resource type. Automatically generated from version 2.0.0dsc_xdnsserversetting
: The DSC xDnsServerSetting resource type. Automatically generated from version 2.0.0dsc_xdnsserverzoneaging
: The DSC xDnsServerZoneAging resource type. Automatically generated from version 2.0.0dsc_xdnsserverzonescope
: The DSC xDnsServerZoneScope resource type. Automatically generated from version 2.0.0dsc_xdnsserverzonetransfer
: The DSC xDnsServerZoneTransfer resource type. Automatically generated from version 2.0.0
Resource types
dsc_dnsrecorda
The DSC DnsRecordA resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecorda
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecorda
type.
dsc_ipv4address
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordaaaa
The DSC DnsRecordAaaa resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordaaaa
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordaaaa
type.
dsc_ipv6address
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordaaaascoped
The DSC DnsRecordAaaaScoped resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordaaaascoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordaaaascoped
type.
dsc_ipv6address
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
dsc_zonescope
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordascoped
The DSC DnsRecordAScoped resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordascoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordascoped
type.
dsc_ipv4address
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
dsc_zonescope
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordcname
The DSC DnsRecordCname resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordcname
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordcname
type.
dsc_hostnamealias
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordcnamescoped
The DSC DnsRecordCnameScoped resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordcnamescoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordcnamescoped
type.
dsc_hostnamealias
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
dsc_zonescope
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordmx
The DSC DnsRecordMx resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordmx
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_priority
Data type: Integer[0, 65535]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordmx
type.
dsc_emaildomain
namevar
Data type: String
dsc_mailexchange
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordmxscoped
The DSC DnsRecordMxScoped resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordmxscoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_priority
Data type: Integer[0, 65535]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordmxscoped
type.
dsc_emaildomain
dsc_mailexchange
dsc_psdscrunascredential
dsc_zonename
dsc_zonescope
name
validation_mode
dsc_emaildomain
namevar
Data type: String
dsc_mailexchange
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
dsc_zonescope
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordptr
The DSC DnsRecordPtr resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordptr
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordptr
type.
dsc_ipaddress
namevar
Data type: String
dsc_name
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordsrv
The DSC DnsRecordSrv resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordsrv
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_priority
Data type: Integer[0, 65535]
dsc_timetolive
Data type: Optional[String]
dsc_weight
Data type: Integer[0, 65535]
Parameters
The following parameters are available in the dsc_dnsrecordsrv
type.
dsc_port
dsc_protocol
dsc_psdscrunascredential
dsc_symbolicname
dsc_target
dsc_zonename
name
validation_mode
dsc_port
namevar
Data type: Integer[0, 65535]
dsc_protocol
namevar
Data type: Enum['TCP', 'UDP']
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_symbolicname
namevar
Data type: String
dsc_target
namevar
Data type: String
dsc_zonename
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsrecordsrvscoped
The DSC DnsRecordSrvScoped resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsrecordsrvscoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
dsc_priority
Data type: Integer[0, 65535]
dsc_timetolive
Data type: Optional[String]
dsc_weight
Data type: Integer[0, 65535]
Parameters
The following parameters are available in the dsc_dnsrecordsrvscoped
type.
dsc_port
dsc_protocol
dsc_psdscrunascredential
dsc_symbolicname
dsc_target
dsc_zonename
dsc_zonescope
name
validation_mode
dsc_port
namevar
Data type: Integer[0, 65535]
dsc_protocol
namevar
Data type: Enum['TCP', 'UDP']
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_symbolicname
namevar
Data type: String
dsc_target
namevar
Data type: String
dsc_zonename
namevar
Data type: String
dsc_zonescope
namevar
Data type: String
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsserveredns
The DSC DnsServerEDns resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsserveredns
type.
dsc_cachetimeout
Data type: Optional[String]
dsc_enableprobes
Data type: Optional[Boolean]
dsc_enablereception
Data type: Optional[Boolean]
Parameters
The following parameters are available in the dsc_dnsserveredns
type.
dsc_dnsserver
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_dnsserverscavenging
The DSC DnsServerScavenging resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_dnsserverscavenging
type.
dsc_lastscavengetime
Data type: Optional[Timestamp]
dsc_norefreshinterval
Data type: Optional[String]
dsc_refreshinterval
Data type: Optional[String]
dsc_scavenginginterval
Data type: Optional[String]
dsc_scavengingstate
Data type: Optional[Boolean]
Parameters
The following parameters are available in the dsc_dnsserverscavenging
type.
dsc_dnsserver
namevar
Data type: String
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsrecord
The DSC xDnsRecord resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsrecord
type.
dsc_dnsserver
Data type: Optional[String]
Name of the DnsServer to create the record on. Defaults to 'localhost'
.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Should this DNS resource record be present or absent
dsc_type
Data type: Enum['ARecord', 'CName', 'Ptr']
Specifies the type of DNS record.
Parameters
The following parameters are available in the dsc_xdnsrecord
type.
dsc_name
namevar
Data type: String
Specifies the name of the DNS server resource record object.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_target
namevar
Data type: String
Specifies the Target Hostname or IP Address. Only Supports IPv4 in the current release.
dsc_zone
namevar
Data type: String
Specifies the name of a DNS zone.
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsrecordmx
The DSC xDnsRecordMx resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsrecordmx
type.
dsc_dnsserver
Data type: Optional[String]
Name of the DnsServer to create the record on.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Should this DNS resource record be present or absent
dsc_priority
Data type: Integer[0, 65535]
Specifies the Priority value of the MX record.
dsc_ttl
Data type: Optional[String]
Specifies the TTL value of the MX record. Value must be in valid TimeSpan format.
Parameters
The following parameters are available in the dsc_xdnsrecordmx
type.
dsc_name
namevar
Data type: String
Specifies the name of the DNS server resource record object. For records in the apex of the domain, use a period.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_target
namevar
Data type: String
Specifies the Target Hostname or IP Address.
dsc_zone
namevar
Data type: String
Specifies the name of a DNS zone.
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserveradzone
The DSC xDnsServerADZone resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserveradzone
type.
dsc_computername
Data type: Optional[String]
Specifies a DNS server. If you do not specify this parameter, the command runs on the local system.
dsc_directorypartitionname
Data type: Optional[String]
Name of the directory partition on which to store the zone. Use this parameter when the ReplicationScope parameter has a value of Custom.
dsc_dynamicupdate
Data type: Optional[Enum['None', 'NonSecureAndSecure', 'Secure']]
AD zone dynamic DNS update option. Defaults to 'Secure'
.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Whether the DNS zone should be available or removed
dsc_replicationscope
Data type: Enum['Custom', 'Domain', 'Forest', 'Legacy']
AD zone replication scope option.
Parameters
The following parameters are available in the dsc_xdnsserveradzone
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
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.
dsc_name
namevar
Data type: String
Name of the AD DNS zone
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverclientsubnet
The DSC xDnsServerClientSubnet resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverclientsubnet
type.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Should this DNS server client subnet be present or absent
dsc_ipv4subnet
Data type: Optional[Array[String]]
Specify an array (1 or more values) of IPv4 Subnet addresses in CIDR Notation.
dsc_ipv6subnet
Data type: Optional[Array[String]]
Specify an array (1 or more values) of IPv6 Subnet addresses in CIDR Notation.
Parameters
The following parameters are available in the dsc_xdnsserverclientsubnet
type.
dsc_name
namevar
Data type: String
Specifies the name of the client subnet.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverconditionalforwarder
The DSC xDnsServerConditionalForwarder resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverconditionalforwarder
type.
dsc_directorypartitionname
Data type: Optional[String]
The name of the directory partition to use when the ReplicationScope is Custom
. This value is ignored for all other replication scopes.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Ensure whether the zone is absent or present.
dsc_masterservers
Data type: Optional[Array[String]]
The IP addresses the forwarder should use. Mandatory if Ensure is present.
dsc_replicationscope
Data type: Optional[Enum['None', 'Custom', 'Domain', 'Forest', 'Legacy']]
Whether the conditional forwarder should be replicated in AD, and the scope of that replication. Default is None
.
dsc_zonetype
Data type: Optional[String]
The zone type
Parameters
The following parameters are available in the dsc_xdnsserverconditionalforwarder
type.
dsc_name
namevar
Data type: String
The name of the zone to manage.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverdiagnostics
The DSC xDnsServerDiagnostics resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverdiagnostics
type.
dsc_answers
Data type: Optional[Boolean]
Specifies whether to enable the logging of DNS responses.
dsc_enablelogfilerollover
Data type: Optional[Boolean]
Specifies whether to enable log file rollover.
dsc_enableloggingforlocallookupevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs local lookup events.
dsc_enableloggingforplugindllevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs dynamic link library (DLL) plug-in events.
dsc_enableloggingforrecursivelookupevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs recursive lookup events.
dsc_enableloggingforremoteserverevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs remote server events.
dsc_enableloggingforserverstartstopevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs server start and stop events.
dsc_enableloggingfortombstoneevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs tombstone events.
dsc_enableloggingforzonedatawriteevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs zone data write events.
dsc_enableloggingforzoneloadingevent
Data type: Optional[Boolean]
Specifies whether the DNS server logs zone load events.
dsc_enableloggingtofile
Data type: Optional[Boolean]
Specifies whether the DNS server logs logging-to-file.
dsc_eventloglevel
Data type: Optional[Integer[0, 4294967295]]
Specifies an event log level. Valid values are Warning, Error, and None.
dsc_filteripaddresslist
Data type: Optional[Array[String]]
Specifies an array of IP addresses to filter. When you enable logging, traffic to and from these IP addresses is logged. If you do not specify any IP addresses, traffic to and from all IP addresses is logged.
dsc_fullpackets
Data type: Optional[Boolean]
Specifies whether the DNS server logs full packets.
dsc_logfilepath
Data type: Optional[String]
Specifies a log file path.
dsc_maxmbfilesize
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum size of the log file. This parameter is relevant if you set EnableLogFileRollover and EnableLoggingToFile to $true
.
dsc_notifications
Data type: Optional[Boolean]
Specifies whether the DNS server logs notifications.
dsc_queries
Data type: Optional[Boolean]
Specifies whether the DNS server allows query packet exchanges to pass through the content filter, such as the FilterIPAddressList parameter.
dsc_questiontransactions
Data type: Optional[Boolean]
Specifies whether the DNS server logs queries.
dsc_receivepackets
Data type: Optional[Boolean]
Specifies whether the DNS server logs receive packets.
dsc_savelogstopersistentstorage
Data type: Optional[Boolean]
Specifies whether the DNS server saves logs to persistent storage.
dsc_sendpackets
Data type: Optional[Boolean]
Specifies whether the DNS server logs send packets.
dsc_tcppackets
Data type: Optional[Boolean]
Specifies whether the DNS server logs TCP packets.
dsc_udppackets
Data type: Optional[Boolean]
Specifies whether the DNS server logs UDP packets.
dsc_unmatchedresponse
Data type: Optional[Boolean]
Specifies whether the DNS server logs unmatched responses.
dsc_update
Data type: Optional[Boolean]
Specifies whether the DNS server logs updates.
dsc_usesystemeventlog
Data type: Optional[Boolean]
Specifies whether the DNS server uses the system event log for logging.
dsc_writethrough
Data type: Optional[Boolean]
Specifies whether the DNS server logs write-throughs.
Parameters
The following parameters are available in the dsc_xdnsserverdiagnostics
type.
dsc_dnsserver
namevar
Data type: String
Specifies the DNS server to connect to, or use 'localhost' for the current node.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverforwarder
The DSC xDnsServerForwarder resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverforwarder
type.
dsc_enablereordering
Data type: Optional[Boolean]
Specifies whether to enable the DNS server to reorder forwarders dynamically.
dsc_ipaddresses
Data type: Optional[Array[String]]
IP addresses of the forwarders
dsc_timeout
Data type: Optional[Integer[0, 4294967295]]
Specifies the number of seconds that the DNS server waits for a response from the forwarder. The minimum value is 0, and the maximum value is 15.
dsc_useroothint
Data type: Optional[Boolean]
Specifies if you want to use root hint or not.
Parameters
The following parameters are available in the dsc_xdnsserverforwarder
type.
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Specifies the resource is a single instance, the value must be 'Yes'
.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverprimaryzone
The DSC xDnsServerPrimaryZone resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverprimaryzone
type.
dsc_dynamicupdate
Data type: Optional[Enum['None', 'NonSecureAndSecure']]
Primary zone dynamic DNS update option. Defaults to 'None'
.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Whether the DNS zone should be present or absent
dsc_zonefile
Data type: Optional[String]
Name of the DNS Server primary zone file. If not specified, defaults to 'ZoneName.dns'.
Parameters
The following parameters are available in the dsc_xdnsserverprimaryzone
type.
dsc_name
namevar
Data type: String
Name of the DNS Server primary zone
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverroothint
The DSC xDnsServerRootHint resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverroothint
type.
dsc_nameserver
Data type: Array[Struct[{ key => Optional[String], value => Optional[String], }]]
A hashtable that defines the name server. Key and value must be strings.
Parameters
The following parameters are available in the dsc_xdnsserverroothint
type.
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Specifies the resource is a single instance, the value must be 'Yes'
.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserversecondaryzone
The DSC xDnsServerSecondaryZone resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserversecondaryzone
type.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Whether the secondary zone should be present or absent.
dsc_masterservers
Data type: Array[String]
IP address or DNS name of the secondary DNS servers
dsc_type
Data type: Optional[String]
Type of the DNS server zone
Parameters
The following parameters are available in the dsc_xdnsserversecondaryzone
type.
dsc_name
namevar
Data type: String
Name of the secondary zone
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserversetting
The DSC xDnsServerSetting resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserversetting
type.
dsc_addressanswerlimit
Data type: Optional[Integer[0, 4294967295]]
Maximum number of host records returned in response to an address request. Values between 5
and 28
are valid.
dsc_allowupdate
Data type: Optional[Integer[0, 4294967295]]
Specifies whether the DNS Server accepts dynamic update requests.
dsc_autocacheupdate
Data type: Optional[Boolean]
Indicates whether the DNS Server attempts to update its cache entries using data from root servers.
dsc_autoconfigfilezones
Data type: Optional[Integer[0, 4294967295]]
Indicates which standard primary zones that are authoritative for the name of the DNS Server must be updated when the name server changes.
dsc_bindsecondaries
Data type: Optional[Boolean]
Determines the AXFR message format when sending to non-Microsoft DNS Server secondaries.
dsc_bootmethod
Data type: Optional[Integer[0, 4294967295]]
Initialization method for the DNS Server.
dsc_defaultagingstate
Data type: Optional[Boolean]
Default ScavengingInterval value set for all Active Directory-integrated zones created on this DNS Server.
dsc_defaultnorefreshinterval
Data type: Optional[Integer[0, 4294967295]]
No-refresh interval, in hours, set for all Active Directory-integrated zones created on this DNS Server.
dsc_defaultrefreshinterval
Data type: Optional[Integer[0, 4294967295]]
Refresh interval, in hours, set for all Active Directory-integrated zones created on this DNS Server.
dsc_disableautoreversezones
Data type: Optional[Boolean]
Indicates whether the DNS Server automatically creates standard reverse look up zones.
dsc_disjointnets
Data type: Optional[Boolean]
Indicates whether the default port binding for a socket used to send queries to remote DNS Servers can be overridden.
dsc_dsavailable
Data type: Optional[Boolean]
Indicates whether there is an available DS on the DNS Server.
dsc_dspollinginterval
Data type: Optional[Integer[0, 4294967295]]
Interval, in seconds, to poll the DS-integrated zones.
dsc_dstombstoneinterval
Data type: Optional[Integer[0, 4294967295]]
Lifetime of tombstoned records in Directory Service integrated zones, expressed in seconds.
dsc_ednscachetimeout
Data type: Optional[Integer[0, 4294967295]]
Lifetime, in seconds, of the cached information describing the EDNS version supported by other DNS Servers.
dsc_enabledirectorypartitions
Data type: Optional[Boolean]
Specifies whether support for application directory partitions is enabled on the DNS Server.
dsc_enablednssec
Data type: Optional[Integer[0, 4294967295]]
Specifies whether the DNS Server includes DNSSEC-specific RRs, KEY, SIG, and NXT in a response.
dsc_enableednsprobes
Data type: Optional[Boolean]
Specifies the behavior of the DNS Server. When TRUE, the DNS Server always responds with OPT resource records according to RFC 2671, unless the remote server has indicated it does not support EDNS in a prior exchange. If FALSE, the DNS Server responds to queries with OPTs only if OPTs are sent in the original query.
dsc_forwarddelegations
Data type: Optional[Integer[0, 4294967295]]
Specifies whether queries to delegated sub-zones are forwarded.
dsc_forwarders
Data type: Optional[Array[String]]
Enumerates the list of IP addresses of Forwarders to which the DNS Server forwards queries.
dsc_forwardingtimeout
Data type: Optional[Integer[0, 4294967295]]
Time, in seconds, a DNS Server forwarding a query will wait for resolution from the forwarder before attempting to resolve the query itself.
dsc_isslave
Data type: Optional[Boolean]
TRUE if the DNS server does not use recursion when name-resolution through forwarders fails.
dsc_listenaddresses
Data type: Optional[Array[String]]
Enumerates the list of IP addresses on which the DNS Server can receive queries.
dsc_localnetpriority
Data type: Optional[Boolean]
Indicates whether the DNS Server gives priority to the local net address when returning A records.
dsc_loglevel
Data type: Optional[Integer[0, 4294967295]]
Indicates which policies are activated in the Event Viewer system log.
dsc_loosewildcarding
Data type: Optional[Boolean]
Indicates whether the DNS Server performs loose wildcarding.
dsc_maxcachettl
Data type: Optional[Integer[0, 4294967295]]
Maximum time, in seconds, the record of a recursive name query may remain in the DNS Server cache.
dsc_maxnegativecachettl
Data type: Optional[Integer[0, 4294967295]]
Maximum time, in seconds, a name error result from a recursive query may remain in the DNS Server cache.
dsc_namecheckflag
Data type: Optional[Integer[0, 4294967295]]
Indicates the set of eligible characters to be used in DNS names.
dsc_norecursion
Data type: Optional[Boolean]
Indicates whether the DNS Server performs recursive look ups. TRUE indicates recursive look ups are not performed.
dsc_recursionretry
Data type: Optional[Integer[0, 4294967295]]
Elapsed seconds before retrying a recursive look up.
dsc_recursiontimeout
Data type: Optional[Integer[0, 4294967295]]
Elapsed seconds before the DNS Server gives up recursive query.
dsc_roundrobin
Data type: Optional[Boolean]
Indicates whether the DNS Server round robins multiple A records.
dsc_rpcprotocol
Data type: Optional[Integer[-32768, 32767]]
RPC protocol or protocols over which administrative RPC runs.
dsc_scavenginginterval
Data type: Optional[Integer[0, 4294967295]]
Interval, in hours, between two consecutive scavenging operations performed by the DNS Server.
dsc_secureresponses
Data type: Optional[Boolean]
Indicates whether the DNS Server exclusively saves records of names in the same subtree as the server that provided them.
dsc_sendport
Data type: Optional[Integer[0, 4294967295]]
Port on which the DNS Server sends UDP queries to other servers.
dsc_strictfileparsing
Data type: Optional[Boolean]
Indicates whether the DNS Server parses zone files strictly.
dsc_updateoptions
Data type: Optional[Integer[0, 4294967295]]
Restricts the type of records that can be dynamically updated on the server, used in addition to the AllowUpdate settings on Server and Zone objects.
dsc_writeauthorityns
Data type: Optional[Boolean]
Specifies whether the DNS Server writes NS and SOA records to the authority section on successful response.
dsc_xfrconnecttimeout
Data type: Optional[Integer[0, 4294967295]]
Time, in seconds, the DNS Server waits for a successful TCP connection to a remote server when attempting a zone transfer.
Parameters
The following parameters are available in the dsc_xdnsserversetting
type.
dsc_dnsserver
namevar
Data type: String
Specifies the DNS server to connect to, or use 'localhost' for the current node.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverzoneaging
The DSC xDnsServerZoneAging resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverzoneaging
type.
dsc_enabled
Data type: Boolean
Option to enable scavenge stale resource records on the zone.
dsc_norefreshinterval
Data type: Optional[Integer[0, 4294967295]]
No-refresh interval for record scavenging in hours. Default value is 168
, 7 days.
dsc_refreshinterval
Data type: Optional[Integer[0, 4294967295]]
Refresh interval for record scavenging in hours. Default value is 168
, 7 days.
Parameters
The following parameters are available in the dsc_xdnsserverzoneaging
type.
dsc_name
namevar
Data type: String
Name of the DNS forward or reverse lookup zone.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverzonescope
The DSC xDnsServerZoneScope resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverzonescope
type.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Should this DNS Server Zone Scope be present or absent
dsc_zonefile
Data type: Optional[String]
Returns the zone scope filename.
Parameters
The following parameters are available in the dsc_xdnsserverzonescope
type.
dsc_name
namevar
Data type: String
Specifies the name of the Zone Scope.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_zonename
namevar
Data type: String
Specify the existing DNS Zone to add a scope to.
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xdnsserverzonetransfer
The DSC xDnsServerZoneTransfer resource type. Automatically generated from version 2.0.0
Properties
The following properties are available in the dsc_xdnsserverzonetransfer
type.
dsc_secondaryserver
Data type: Optional[Array[String]]
IP address or DNS name of DNS servers where zone information can be transferred
dsc_type
Data type: Enum['None', 'Any', 'Named', 'Specific']
Type of transfer allowed
Parameters
The following parameters are available in the dsc_xdnsserverzonetransfer
type.
dsc_name
namevar
Data type: String
Name of the DNS zone
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
[2.0.0] - 2021-03-26
Deprecated
- The module xDnsServer will be renamed DnsServerDsc. Version
2.0.0
will be the the last release of xDnsServer. Version3.0.0
will be release as DnsServerDsc, it will be released shortly after the2.0.0
release (issue #179). The prefix 'x' will be removed from all resources in DnsServerDsc. - xDnsRecord will be removed in the next release (of DnsServerDsc) (issue #220). Start migrate to the resources DnsRecord*.
- xDnsRecordMx will be removed in the next release (of DnsServerDsc) (issue #228). Start migrate to the resources DnsRecordMx.
- The properties
DefaultAgingState
,ScavengingInterval
,DefaultNoRefreshInterval
, andDefaultRefreshInterval
will be removed from the resource xDnsServerSetting in the next release (of DnsServerDsc) (issue #193). Migrate to use the resource DnsServerScavenging to enforce these properties. - The properties
EnableEDnsProbes
andEDnsCacheTimeout
will be removed from the resource xDnsServerSetting in the next release (of DnsServerDsc) (issue #195). Migrate to use the resource DnsServerEDns to enforce these properties. - The properties
Forwarders
andForwardingTimeout
will be removed from the resource xDnsServerSetting in the next release (of DnsServerDsc) (issue #192) Migrate to use the resource xDnsServerForwarder to enforce these properties.
Added
- xDnsServer
- Added automatic release with a new CI pipeline.
- Add unit tests for the Get-LocalizedData, NewTerminatingError, and Assert-Module helper functions.
- Added description README files for each resource.
- Add example files for resources
- OptIn to the following Dsc Resource Meta Tests:
- Common Tests - Validate Localization
- Common Tests - Validate Example Files To Be Published
- Standardize Resource Localization.
- Added the build task
Publish_GitHub_Wiki_Content
to publish content to the GitHub repository wiki. - Added new source folder
WikiSource
which content will be published to the GitHub repository wiki.- Add the markdown file
Home.md
which will be automatically updated with the latest version before published to GitHub repository wiki.
- Add the markdown file
- Updated the prerequisites in the GitHub repository wiki (
Home.md
) that Microsoft DNS Server is required on a node targeted by a resource, and that the DSC resources requires the DnsServer PowerShell module (issue #37). - Added the base class
ResourcePropertiesBase
to hold DSC properties that can be inherited for all class-based resources. - Added the base class
ResourceBase
to hold methods that should be inherited for all class-based resources. - Added new private function
ConvertTo-TimeSpan
to help when evaluating properties that must be passed as strings and then converted to[System.TimeSpan]
. - Added new private function
Assert-TimeSpan
to help assert that a value provided in a resource can be converted to a[System.TimeSpan]
and optionally evaluates so it is not below a minium value or over a maximum value. - Added
prefix.ps1
that is used to import dependent modules like DscResource.Common. - Added new resource
- DnsServerScavenging - resource to enforce scavenging settings (issue #189).
- DnsServerEDns - resource to enforce extension mechanisms for DNS (EDNS) settings (issue #194).
- xDNSServerClientSubnet
- Added integration tests.
- xDnsServerPrimaryZone
- Added integration tests (issue #173).
- Added more examples.
- xDnsRecordMx
- Added new resource to manage MX records
- xDnsServerZoneScope
- Added integration tests (issue #177).
- New read-only property
ZoneFile
was added to return the zone scope file name used for the zone scope.
- xDnsServerZoneAging
- Added integration tests (issue #176).
- xDnsServerForwarder
- Added integration tests (issue #170).
- Added new properties
Timeout
andEnableReordering
(issue #191).
- xDnsServerRootHint
- Added integration tests (issue #174).
- Added a class
DnsRecordBase
that is used as the base class for the resources that create DNS records.- Added unit tests to get code coverage on unimplemented method calls (ensuring the
throw
statements get called)
- Added unit tests to get code coverage on unimplemented method calls (ensuring the
- DnsRecordSrv
- Added new resource to manage SRV records
- DnsRecordSrvScoped
- Added new resource to manage scoped SRV records
- DnsRecordA
- Added new resource to manage A records
- DnsRecordAScoped
- Added new resource to manage scoped A records
- DnsRecordAaaa
- Added new resource to manage AAAA records
- DnsRecordAaaaScoped
- Added new resource to manage scoped AAAA records
- DnsRecordCname
- Added new resource to manage CNAME records
- DnsRecordCnameScoped
- Added new resource to manage scoped CNAME records
- DnsRecordPtr
- Added new resource to manage PTR records
- DnsRecordMx
- Added new resource to manage MX records
- DnsRecordMxScoped
- Added new resource to manage scoped MX records
Changed
- xDnsServer
- BREAKING CHANGE: Set the minimum required PowerShell version to 5.0 to support classes used in the DnsRecordBase-derived resources.
- Resolve style guideline violations for hashtables
- Update pipeline files.
- Renamed the default branch to
main
(issue #131). - Uses
PublishPipelineArtifact
in Azure Pipelines pipeline. - Unit tests are now run in PowerShell 7 in the Azure Pipelines pipeline (issue #160).
- Merged the historic changelog into CHANGELOG.md (issue #163).
- Only add required role in integration tests pipeline.
- Updated the pipeline to use new deploy tasks.
- Revert back to using the latest version of module Sampler for the pipeline (issue #211).
- Fixed the sections in the GitHub issue and pull request templates to have a bit higher font size. This makes it easier to distinguish the section headers from the text.
- DnsRecordBase
- Changed class to inherit properties from 'ResourcePropertiesBase`.
- xDnsRecordSrv
- Now uses
[CimInstance]::new()
both in the resource code and the resource unit test to clone the existing DNS record instead of using the methodClone()
that does not exist in PowerShell 7.
- Now uses
- xDnsServerSetting
- BREAKING CHANGE: The mandatory parameter was replaced by the mandatory
parameter
DnsServer
. This prevents the resource from being used twice in the same configuration using the same value for the parameterDnsServer
(issue #156).
- BREAKING CHANGE: The mandatory parameter was replaced by the mandatory
parameter
- xDnsServerDiagnostics
- BREAKING CHANGE: The mandatory parameter was replaced by the mandatory
parameter
DnsServer
. This prevents the resource from being used twice in the same configuration using the same value for the parameterDnsServer
(issue #157).
- BREAKING CHANGE: The mandatory parameter was replaced by the mandatory
parameter
- xDnsServerPrimaryZone
- Now the property
Name
is always returned fromGet-TargetResource
since it is aKey
property.
- Now the property
- xDnsServerForwarder
- When providing an empty collection the resource will enforce that no forwarders are present.
- DnsRecordSrv
- Changed logic for calculating the record's hostname
Removed
- xDnsServer
- BREAKING CHANGE: The DSC resource xDnsARecord was removed and are replaced by the DSC resource xDnsRecord.
- Removing resource parameter information from README.md in favor of GitHub repository wiki.
- Remove helper function
Remove-CommonParameter
in favor of the one in module DscResource.Common (issue #166). - Remove helper function
ConvertTo-CimInstance
in favor of the one in module DscResource.Common (issue #167). - Remove helper function
ConvertTo-HashTable
in favor of the one in module DscResource.Common (issue #168).
- xDnServerSetting
- BREAKING CHANGE: The properties
LogIPFilterList
,LogFilePath
,LogFileMaxSize
, andEventLogLevel
have been removed. Use the resource xDnsServerDiagnostics with the propertiesFilterIPAddressList
,LogFilePath
,MaxMBFileSize
, andEventLogLevel
respectively to enforce these settings (issue #190). This is done in preparation to support more settings through the cmdletGet-DnsServerSetting
for the resource xDnServerSetting, and these values are not available through that cmdlet.
- BREAKING CHANGE: The properties
Fixed
- xDnsServer
- Enable Unit Tests to be run locally.
- Rename integr
Dependencies
- puppetlabs/pwshlib (>= 0.9.0 < 2.0.0)