dnsserverdsc
Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 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
- Puppet >= 7.0.0 < 9.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsc-dnsserverdsc', '3.0.0-0-4'
Learn more about managing modules with a PuppetfileDocumentation
dnsserverdsc
Table of Contents
Description
This is an auto-generated module, using the Puppet DSC Builder to vendor and expose the dnsserverdsc PowerShell module's DSC resources as Puppet resources. The functionality of this module comes entirely from the vendored PowerShell resources, which are pinned at v3.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 3.0.0dsc_dnsrecordaaaa
: The DSC DnsRecordAaaa resource type. Automatically generated from version 3.0.0dsc_dnsrecordaaaascoped
: The DSC DnsRecordAaaaScoped resource type. Automatically generated from version 3.0.0dsc_dnsrecordascoped
: The DSC DnsRecordAScoped resource type. Automatically generated from version 3.0.0dsc_dnsrecordcname
: The DSC DnsRecordCname resource type. Automatically generated from version 3.0.0dsc_dnsrecordcnamescoped
: The DSC DnsRecordCnameScoped resource type. Automatically generated from version 3.0.0dsc_dnsrecordmx
: The DSC DnsRecordMx resource type. Automatically generated from version 3.0.0dsc_dnsrecordmxscoped
: The DSC DnsRecordMxScoped resource type. Automatically generated from version 3.0.0dsc_dnsrecordns
: The DSC DnsRecordNs resource type. Automatically generated from version 3.0.0dsc_dnsrecordnsscoped
: The DSC DnsRecordNsScoped resource type. Automatically generated from version 3.0.0dsc_dnsrecordptr
: The DSC DnsRecordPtr resource type. Automatically generated from version 3.0.0dsc_dnsrecordsrv
: The DSC DnsRecordSrv resource type. Automatically generated from version 3.0.0dsc_dnsrecordsrvscoped
: The DSC DnsRecordSrvScoped resource type. Automatically generated from version 3.0.0dsc_dnsserveradzone
: The DSC DnsServerADZone resource type. Automatically generated from version 3.0.0dsc_dnsservercache
: The DSC DnsServerCache resource type. Automatically generated from version 3.0.0dsc_dnsserverclientsubnet
: The DSC DnsServerClientSubnet resource type. Automatically generated from version 3.0.0dsc_dnsserverconditionalforwarder
: The DSC DnsServerConditionalForwarder resource type. Automatically generated from version 3.0.0dsc_dnsserverdiagnostics
: The DSC DnsServerDiagnostics resource type. Automatically generated from version 3.0.0dsc_dnsserverdssetting
: The DSC DnsServerDsSetting resource type. Automatically generated from version 3.0.0dsc_dnsserveredns
: The DSC DnsServerEDns resource type. Automatically generated from version 3.0.0dsc_dnsserverforwarder
: The DSC DnsServerForwarder resource type. Automatically generated from version 3.0.0dsc_dnsserverprimaryzone
: The DSC DnsServerPrimaryZone resource type. Automatically generated from version 3.0.0dsc_dnsserverrecursion
: The DSC DnsServerRecursion resource type. Automatically generated from version 3.0.0dsc_dnsserverroothint
: The DSC DnsServerRootHint resource type. Automatically generated from version 3.0.0dsc_dnsserverscavenging
: The DSC DnsServerScavenging resource type. Automatically generated from version 3.0.0dsc_dnsserversecondaryzone
: The DSC DnsServerSecondaryZone resource type. Automatically generated from version 3.0.0dsc_dnsserversetting
: The DSC DnsServerSetting resource type. Automatically generated from version 3.0.0dsc_dnsserversettinglegacy
: The DSC DnsServerSettingLegacy resource type. Automatically generated from version 3.0.0dsc_dnsserverzoneaging
: The DSC DnsServerZoneAging resource type. Automatically generated from version 3.0.0dsc_dnsserverzonescope
: The DSC DnsServerZoneScope resource type. Automatically generated from version 3.0.0dsc_dnsserverzonetransfer
: The DSC DnsServerZoneTransfer resource type. Automatically generated from version 3.0.0
Resource types
dsc_dnsrecorda
The DSC DnsRecordA resource type. Automatically generated from version 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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_dnsrecordns
The DSC DnsRecordNs resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsrecordns
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', 'absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordns
type.
dsc_domainname
namevar
Data type: String
dsc_nameserver
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_dnsrecordnsscoped
The DSC DnsRecordNsScoped resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsrecordnsscoped
type.
dsc_dnsserver
Data type: Optional[String]
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', 'absent']]
dsc_timetolive
Data type: Optional[String]
Parameters
The following parameters are available in the dsc_dnsrecordnsscoped
type.
dsc_domainname
dsc_nameserver
dsc_psdscrunascredential
dsc_zonename
dsc_zonescope
name
validation_mode
dsc_domainname
namevar
Data type: String
dsc_nameserver
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 3.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', 'present', 'Absent', '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 3.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', 'present', 'Absent', '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', 'tcp', 'UDP', '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 3.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', 'present', 'Absent', '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', 'tcp', 'UDP', '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_dnsserveradzone
The DSC DnsServerADZone resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserveradzone
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', 'none', 'NonSecureAndSecure', 'nonsecureandsecure', 'Secure', 'secure']]
AD zone dynamic DNS update option. Defaults to 'Secure'
.
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', 'absent']]
Whether the DNS zone should be available or removed
dsc_replicationscope
Data type: Enum['Custom', 'custom', 'Domain', 'domain', 'Forest', 'forest', 'Legacy', 'legacy']
AD zone replication scope option.
Parameters
The following parameters are available in the dsc_dnsserveradzone
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_dnsservercache
The DSC DnsServerCache resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsservercache
type.
dsc_enablepollutionprotection
Data type: Optional[Boolean]
dsc_ignorepolicies
Data type: Optional[Boolean]
dsc_lockingpercent
Data type: Optional[Integer[0, 4294967295]]
dsc_maxkbsize
Data type: Optional[Integer[0, 4294967295]]
dsc_maxnegativettl
Data type: Optional[String]
dsc_maxttl
Data type: Optional[String]
dsc_storeemptyauthenticationresponse
Data type: Optional[Boolean]
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsservercache
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_dnsserverclientsubnet
The DSC DnsServerClientSubnet resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverclientsubnet
type.
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', '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_dnsserverclientsubnet
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_dnsserverconditionalforwarder
The DSC DnsServerConditionalForwarder resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverconditionalforwarder
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', 'present', 'Absent', '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', 'none', 'Custom', 'custom', 'Domain', 'domain', 'Forest', 'forest', 'Legacy', '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_dnsserverconditionalforwarder
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_dnsserverdiagnostics
The DSC DnsServerDiagnostics resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverdiagnostics
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.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverdiagnostics
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_dnsserverdssetting
The DSC DnsServerDsSetting resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverdssetting
type.
dsc_directorypartitionautoenlistinterval
Data type: Optional[String]
dsc_lazyupdateinterval
Data type: Optional[Integer[0, 4294967295]]
dsc_minimumbackgroundloadthreads
Data type: Optional[Integer[0, 4294967295]]
dsc_pollinginterval
Data type: Optional[String]
dsc_remotereplicationdelay
Data type: Optional[Integer[0, 4294967295]]
dsc_tombstoneinterval
Data type: Optional[String]
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverdssetting
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_dnsserveredns
The DSC DnsServerEDns resource type. Automatically generated from version 3.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]
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
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_dnsserverforwarder
The DSC DnsServerForwarder resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverforwarder
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.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverforwarder
type.
dsc_issingleinstance
namevar
Data type: Enum['Yes', '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_dnsserverprimaryzone
The DSC DnsServerPrimaryZone resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverprimaryzone
type.
dsc_dynamicupdate
Data type: Optional[Enum['None', 'none', 'NonSecureAndSecure', 'nonsecureandsecure']]
Primary zone dynamic DNS update option. Defaults to 'None'
.
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', '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_dnsserverprimaryzone
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_dnsserverrecursion
The DSC DnsServerRecursion resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverrecursion
type.
dsc_additionaltimeout
Data type: Optional[Integer[0, 4294967295]]
dsc_enable
Data type: Optional[Boolean]
dsc_retryinterval
Data type: Optional[Integer[0, 4294967295]]
dsc_timeout
Data type: Optional[Integer[0, 4294967295]]
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverrecursion
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_dnsserverroothint
The DSC DnsServerRootHint resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverroothint
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.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverroothint
type.
dsc_issingleinstance
namevar
Data type: Enum['Yes', '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_dnsserverscavenging
The DSC DnsServerScavenging resource type. Automatically generated from version 3.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]
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
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_dnsserversecondaryzone
The DSC DnsServerSecondaryZone resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserversecondaryzone
type.
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', '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_dnsserversecondaryzone
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_dnsserversetting
The DSC DnsServerSetting resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserversetting
type.
dsc_addressanswerlimit
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum number of A (host IP address) resource records that the DNS server can insert in the answer section of a response to an A record query (a query for an IP address). The value of this entry also influences the setting of the truncation bit. If the value of this entry can be between 5
and 28
, or 0
. The truncation bit is not set on the response, even when the packet space is exceeded.
dsc_adminconfigured
Data type: Optional[Boolean]
Specifies whether the server has been configured by an administrator.
dsc_allipaddress
Data type: Optional[Array[String]]
Returns all of the IP addresses managed by the DNS server.
dsc_allowcnameatns
Data type: Optional[Boolean]
Specifies whether the server will permit the target domain names of NS records to resolve to CNAME records. If $true
, this pattern of DNS records will be allowed; otherwise, the DNS server will return errors when encountering this pattern of DNS records while resolving queries.
dsc_allowreadonlyzonetransfer
Data type: Optional[Boolean]
Specifies whether the DNS server will allow zone transfers for zones that are stored in the directory server when the directory server does not support write operations.
dsc_allowupdate
Data type: Optional[Boolean]
Specifies whether the DNS Server accepts dynamic update requests. $true
to allow any DNS update operation; otherwise, $false
.
dsc_appendmszonetransfertag
Data type: Optional[Boolean]
Specifies whether the DNS server will indicate to the remote DNS servers that it supports multiple DNS records in each zone transfer response message by appending the characters MS at the end of zone transfer requests. The value SHOULD be limited to 0x00000000
and 0x0000000
, but it MAY be any value.
dsc_autocacheupdate
Data type: Optional[Boolean]
Specifies whether the DNS Server attempts to update its cache entries using data from root servers. $true
to cache delegation information; otherwise, $false
.
dsc_autoconfigfilezones
Data type: Optional[Integer[0, 4294967295]]
Specifies the type of zones for which SOA and NS records will be automatically configured with the DNS server's local host name as the primary DNS server for the zone when the zone is loaded from file.
dsc_autocreatedelegation
Data type: Optional[Integer[0, 4294967295]]
Specifies possible settings for automatic delegation creation for new zones on the DNS server. The value SHOULD be limited to the range from 0x00000000
to 0x00000002
, inclusive, but it MAY be any value.
dsc_bindsecondaries
Data type: Optional[Boolean]
Specifies whether the server will permit send DNS zone transfer response messages with more than one record in each response if the zone transfer request did not have the characters MS appended to it. If set to $true
, the DNS server will include only one record in each response if the zone transfer request did not have the characters MS appended to it.
dsc_bootmethod
Data type: Optional[Integer[0, 4294967295]]
Specifies the boot method used by the DNS server.
dsc_buildnumber
Data type: Optional[Integer[0, 4294967295]]
Returns the The build version of the OS of the DNS server.
dsc_deleteoutsideglue
Data type: Optional[Boolean]
Specifies whether the DNS server will delete DNS glue records found outside a delegated subzone when reading records from persistent storage.
dsc_disableautoreversezone
Data type: Optional[Boolean]
Specifies whether the DNS Server automatically creates standard reverse look up zones. $true
to disables automatic reverse zones; otherwise, $false
.
dsc_domaindirectorypartitionbasename
Data type: Optional[String]
Returns the application directory partition for the domain the DNS server belongs to. Applicable only for active directory integrated DNS server.
dsc_dsavailable
Data type: Optional[Boolean]
Returns $true
if the DNS server has Active Directory integrated DNS enabled; otherwise, $false
.
dsc_enabledirectorypartitions
Data type: Optional[Boolean]
Specifies whether the DNS server will support application directory partitions.
dsc_enablednssec
Data type: Optional[Boolean]
Specifies whether the DNS Server includes DNSSEC-specific RRs, KEY, SIG, and NXT in a response. $true
to enable DNSSEC validation on the DNS server; otherwise, $false
.
dsc_enableduplicatequerysuppression
Data type: Optional[Boolean]
Specifies whether the DNS server will not send remote queries when there is already a remote query with the same name and query type outstanding.
dsc_enableipv6
Data type: Optional[Boolean]
Specifies whether IPv6 should be enabled on the DNS Server. $true
to enable IPv6 on the DNS server; otherwise, $false
.
dsc_enableiqueryresponsegeneration
Data type: Optional[Boolean]
Specifies whether the DNS server will fabricate IQUERY responses. If set to $true
, the DNS server MUST fabricate IQUERY responses when it receives queries of type IQUERY. Otherwise, the DNS server will return an error when such queries are received.
dsc_enableonlinesigning
Data type: Optional[Boolean]
Specifies whether online signing should be enabled on the DNS Server. $true
to enable online signing; otherwise, $false
.
dsc_enablersoforrodc
Data type: Optional[Boolean]
Specifies whether the DNS server will attempt to replicate single updated DNS objects from remote directory servers ahead of normally scheduled replication when operating on a directory server that does not support write operations.
dsc_enablesenderrorsuppression
Data type: Optional[Boolean]
Specifies whether the DNS server will attempt to suppress large volumes of DNS error responses sent to remote IP addresses that may be attempting to attack the DNS server.
dsc_enableupdateforwarding
Data type: Optional[Boolean]
Specifies whether the DNS server will forward updates received for secondary zones to the primary DNS server for the zone.
dsc_enableversionquery
Data type: Optional[Integer[0, 4294967295]]
Specifies what version information the DNS server will respond with when a DNS query with class set to CHAOS and type set to TXT is received.
dsc_enablewinsr
Data type: Optional[Boolean]
Specifies whether the DNS server will perform NetBIOS name resolution in order to map IP addresses to machine names while processing queries in zones where WINS-R information has been configured.
dsc_forestdirectorypartitionbasename
Data type: Optional[String]
Returns the application directory partition for the forest the DNS server belongs to. Applicable only for active directory integrated DNS server.
dsc_forwarddelegations
Data type: Optional[Boolean]
Specifies how the DNS server will handle forwarding and delegations. If set to $true
, the DNS server MUST use forwarders instead of a cached delegation when both are available. Otherwise, the DNS server MUST use a cached delegation instead of forwarders when both are available.
dsc_ignoreallpolicies
Data type: Optional[Boolean]
Specifies whether to ignore all policies on the DNS server. $true
to ignore all policies on the DNS server; otherwise, $false
.
dsc_ignoreserverlevelpolicies
Data type: Optional[Boolean]
Specifies whether to ignore the server level policies on the DNS server. $true
to ignore the server level policies on the DNS server; otherwise, $false
.
dsc_isreadonlydc
Data type: Optional[Boolean]
Returns $true
if write operations are enabled on the directory server; otherwise, $false
.
dsc_lamedelegationttl
Data type: Optional[String]
Specifies the time span that must elapse before the DNS server will re-query DNS servers of the parent zone when a lame delegation is encountered. The value SHOULD be limited to the range from 0x00000000
to 0x00278D00
30 days, inclusive, but it MAY be any value.
dsc_listeningipaddress
Data type: Optional[Array[String]]
Specifies the listening IP addresses of the DNS server. The list of IP addresses on which the DNS Server can receive queries.
dsc_localnetpriority
Data type: Optional[Boolean]
Specifies whether the DNS Server gives priority to the local net address when returning A records. $true
to return A records in order of their similarity to the IP address of the querying client.; otherwise, $false
.
dsc_localnetprioritymask
Data type: Optional[Integer[0, 4294967295]]
Specifies the value which specifies the network mask the DNS server will use to sort IPv4 addresses. A value of 0xFFFFFFFF
indicates that the DNS server MUST use traditional IPv4 network mask for the address. Any other value is a network mask, in host byte order that the DNS server MUST use to retrieve network masks from IP addresses for sorting purposes.
dsc_loosewildcarding
Data type: Optional[Boolean]
Specifies he type of algorithm that the DNS server will use to locate a wildcard node when using a DNS wildcard record RFC1034 to answer a query. If true, the DNS server will use the first node it encounters with a record of the same type as the query type. Otherwise, the DNS server will use the first node it encounters that has records of any type.
dsc_majorversion
Data type: Optional[Integer[0, 4294967295]]
Returns the major version of the OS of the DNS server.
dsc_maximumrodcrsoattemptspercycle
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum number of queued single object replication operations that should be attempted during each five minute interval of DNS server operation. The value MUST be limited to the range from 0x00000001
to 0x000F4240
, inclusive.
dsc_maximumrodcrsoqueuelength
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum number of single object replication operations that may be queued at any given time by the DNS server. The value MUST be limited to the range from 0x00000000
to 0x000F4240
, inclusive. If the value is 0x00000000
the DNS server MUST NOT enforce an upper bound on the number of single object replication operations queued at any given time.
dsc_maximumsignaturescanperiod
Data type: Optional[String]
Specifies the maximum period between zone scans to update DnsSec signatures for resource records.
dsc_maximumtrustanchoractiverefreshinterval
Data type: Optional[String]
Specifies the maximum value for the active refresh interval for a trust anchor. Must not be higher than 15 days.
dsc_maximumudppacketsize
Data type: Optional[Integer[0, 4294967295]]
Returns the maximum UDP packet size, in bytes, that the DNS server can accept.
dsc_maxresourcerecordsinnonsecureupdate
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum number of resource records that the DNS server will accept in a single DNS update request. The value SHOULD be limited to the range from 0x0000000A
to 0x00000078
, inclusive, but it MAY be any value.
dsc_minorversion
Data type: Optional[Integer[0, 4294967295]]
Returns the minor version of the OS of the DNS server.
dsc_namecheckflag
Data type: Optional[Integer[0, 4294967295]]
Specifies the level of domain name checking and validation on the DNS server, the set of eligible characters to be used in DNS names.
dsc_noupdatedelegations
Data type: Optional[Boolean]
Specifies whether the DNS server will accept DNS updates to delegation records of type NS.
dsc_openaclonproxyupdates
Data type: Optional[Boolean]
Specifies whether the DNS server allows sharing of DNS records with the DnsUpdateProxy group when processing updates in secure zones that are stored in the directory service.
dsc_publishautonet
Data type: Optional[Boolean]
Specifies whether the DNS server will publish local IPv4 addresses in the 169.254.x.x subnet as IPv4 addresses for the local machine's domain name.
dsc_quietrecvfaultinterval
Data type: Optional[Integer[0, 4294967295]]
Specifies the minimum time interval, in seconds, starting when the server begins waiting for the query to arrive on the network, after which the server MAY log a debug message indicating that the server is to stop running. If the value is zero or is less than the value of QuietRecvLogInterval*, then the value of QuietRecvLogInterval MUST be used. If the value is greater than or equal to the value of QuietRecvLogInterval, then the literal value of QuietRecvFaultInterval** MUST be used. Used to debug reception of UDP traffic for a recursive query.
dsc_quietrecvloginterval
Data type: Optional[Integer[0, 4294967295]]
Specifies the minimum time interval, in seconds, starting when the server begins waiting for the query to arrive on the network, or when the server logs an eponymous debug message for the query, after which the server MUST log a debug message indicating that the server is still waiting to receive network traffic. If the value is zero, logging associated with the two QuietRecv properties MUST be disabled, and the QuietRecvFaultInterval property MUST be ignored. If the value is non-zero, logging associated with the two QuietRecv properties MUST be enabled, and the QuietRecvFaultInterval property MUST NOT be ignored. Used to debug reception of UDP traffic for a recursive query.
dsc_reloadexception
Data type: Optional[Boolean]
Specifies whether the DNS server will perform an internal restart if an unexpected fatal error is encountered.
dsc_remoteipv4rankboost
Data type: Optional[Integer[0, 4294967295]]
Specifies the value to add to all IPv4 addresses for remote DNS servers when selecting between IPv4 and IPv6 remote DNS server addresses. The value MUST be limited to the range from 0x00000000
to 0x0000000A
, inclusive.
dsc_remoteipv6rankboost
Data type: Optional[Integer[0, 4294967295]]
Specifies the value to add to all IPv6 addresses for remote DNS servers when selecting between IPv4 and IPv6 remote DNS server addresses. The value MUST be limited to the range from 0x00000000
to 0x0000000A
, inclusive.
dsc_roottrustanchorsurl
Data type: Optional[String]
Specifies the URL of the root trust anchor on the DNS server.
dsc_roundrobin
Data type: Optional[Boolean]
Specifies whether the DNS Server round robins multiple A records. $true
to enable Round-robin DNS on the DNS server; otherwise, $false
.
dsc_rpcprotocol
Data type: Optional[Integer[0, 4294967295]]
Specifies the DNS_RPC_PROTOCOLS section 2.2.1.1.2 value corresponding to the RPC protocols to which the DNS server will respond. If this value is set to 0x00000000
, the DNS server MUST NOT respond to RPC requests for any protocol.
dsc_scopeoptionvalue
Data type: Optional[Integer[0, 4294967295]]
Specifies the extension mechanism for the DNS (ENDS0) scope setting on the DNS server.
dsc_selftest
Data type: Optional[Integer[0, 4294967295]]
Specifies the mask value indicating whether data consistency checking should be performed once, each time the service starts. If the check fails, the server posts an event log warning. If the least significant bit (regardless of other bits) of this value is one, the DNS server will verify for each active and update-allowing primary zone, that the IP address records are present in the zone for the zone's SOA record's master server. If the least significant bit (regardless of other bits) of this value is zero, no data consistency checking will be performed.
dsc_sendport
Data type: Optional[Integer[0, 4294967295]]
Specifies the port number to use as the source port when sending UDP queries to a remote DNS server. If set to zero, the DNS server allow the stack to select a random port.
dsc_serverlevelplugindll
Data type: Optional[String]
Specifies the path of a custom plug-in. When DllPath specifies the fully qualified path name of a valid DNS server plug-in, the DNS server calls functions in the plug-in to resolve name queries that are outside the scope of all locally hosted zones. If a queried name is out of the scope of the plug-in, the DNS server performs name resolution using forwarding or recursion, as configured. If DllPath is not specified, the DNS server ceases to use a custom plug-in if a custom plug-in was previously configured.
dsc_silentlyignorecnameupdateconflicts
Data type: Optional[Boolean]
Specifies whether the DNS server will ignore CNAME conflicts during DNS update processing.
dsc_socketpoolexcludedportranges
Data type: Optional[Array[String]]
Specifies the port ranges that should be excluded.
dsc_socketpoolsize
Data type: Optional[Integer[0, 4294967295]]
Specifies the number of UDP sockets per address family that the DNS server will use for sending remote queries.
dsc_strictfileparsing
Data type: Optional[Boolean]
Specifies whether the DNS server will treat errors encountered while reading zones from a file as fatal.
dsc_syncdszoneserial
Data type: Optional[Integer[0, 4294967295]]
Specifies the conditions under which the DNS server should immediately commit uncommitted zone serial numbers to persistent storage. The value SHOULD be limited to the range from 0x00000000
to 0x00000004
, inclusive, but it MAY be any value.
dsc_tcpreceivepacketsize
Data type: Optional[Integer[0, 4294967295]]
Specifies the maximum TCP packet size, in bytes, that the DNS server can accept. The value MUST be limited to the range from 0x00004000
to 0x00010000
, inclusive.
dsc_updateoptions
Data type: Optional[Integer[0, 4294967295]]
Specifies the DNS update options used by the DNS server.
dsc_virtualizationinstanceoptionvalue
Data type: Optional[Integer[0, 4294967295]]
Specifies the virtualization instance option to be sent in ENDS0.
dsc_writeauthorityns
Data type: Optional[Boolean]
Specifies whether the DNS server will include NS records for the root of a zone in DNS responses that are answered using authoritative zone data.
dsc_xfrconnecttimeout
Data type: Optional[Integer[0, 4294967295]]
Specifies the time span, in seconds, in which a primary DNS server waits for a transfer response from its secondary server. The default value is 30
. After the time-out value expires, the connection is terminated.
dsc_xfrthrottlemultiplier
Data type: Optional[Integer[0, 4294967295]]
Specifies the multiple used to determine how long the DNS server should refuse zone transfer requests after a successful zone transfer has been completed. The total time for which a zone will refuse another zone transfer request at the end of a successful zone transfer is computed as this value multiplied by the number of seconds required for the zone transfer that just completed. The server SHOULD refuse zone transfer requests for no more than ten minutes. The value SHOULD be limited to the range from 0x00000000
to 0x00000064
, inclusive, but it MAY be any value.
dsc_zonewritebackinterval
Data type: Optional[String]
Specifies the zone write back interval for file backed zones.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserversetting
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_dnsserversettinglegacy
The DSC DnsServerSettingLegacy resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserversettinglegacy
type.
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_loglevel
Data type: Optional[Integer[0, 4294967295]]
Indicates which policies are activated in the Event Viewer system log.
dsc_noforwarderrecursion
Data type: Optional[Boolean]
TRUE if the DNS server does not use recursion when name-resolution through forwarders fails.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserversettinglegacy
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_dnsserverzoneaging
The DSC DnsServerZoneAging resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverzoneaging
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.
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverzoneaging
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_dnsserverzonescope
The DSC DnsServerZoneScope resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverzonescope
type.
dsc_ensure
Data type: Optional[Enum['Present', 'present', 'Absent', '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_dnsserverzonescope
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_dnsserverzonetransfer
The DSC DnsServerZoneTransfer resource type. Automatically generated from version 3.0.0
Properties
The following properties are available in the dsc_dnsserverzonetransfer
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', 'none', 'Any', 'any', 'Named', 'named', 'Specific', 'specific']
Type of transfer allowed
ensurable
Data type: Boolean[false]
Default attribute added to all dsc types without an ensure property. This resource is not ensurable.
Parameters
The following parameters are available in the dsc_dnsserverzonetransfer
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
[3.0.0] - 2021-05-26
Removed
-
xDnsRecord
- BREAKING CHANGE: The resource has been replaced by DnsServerA, DnsServerPtr, and DnsServerCName (issue #221).
-
xDnsServerMx
- BREAKING CHANGE: The resource has been replaced by DnsServerMx (issue #228).
-
DnsServerSetting
- BREAKING CHANGE: The properties
Forwarders
andForwardingTimeout
has been removed (issue #192). Use the resource DnsServerForwarder to enforce these properties. - BREAKING CHANGE: The properties
EnableEDnsProbes
andEDnsCacheTimeout
has been removed (issue #195). Use the resource DnsServerEDns to enforce these properties. - BREAKING CHANGE: The properties
SecureResponses
,MaxCacheTTL
, andMaxNegativeCacheTTL
has been removed (issue #197). To enforce theses properties, use resource DnsServerEDns using the propertiesEnablePollutionProtection
,MaxTtl
, andMaxNegativeTtl
respectively. - BREAKING CHANGE: The properties
DefaultAgingState
,ScavengingInterval
,DefaultNoRefreshInterval
, andDefaultRefreshInterval
have been removed. Use the resource DnsServerScavenging to enforce this properties (issue #193). - BREAKING CHANGE: The properties
NoRecursion
,RecursionRetry
, andRecursionTimeout
has been removed (issue #200). To enforce theses properties, use resource DnsServerRecursion using the propertiesEnable
,RetryInterval
, andTimeout
respectively. - BREAKING CHANGE: A few properties that are not supported by any DNS Server PowerShell cmdlet was moved to the new resource DnsServerSettingLegacy.
- BREAKING CHANGE: The properties
DsPollingInterval
andDsTombstoneInterval
has been removed (issue #252). Use the resource DnsServerDsSetting to enforce these properties.
- BREAKING CHANGE: The properties
-
ResourceBase
- For the method
Get()
the overload that took a[Microsoft.Management.Infrastructure.CimInstance]
was removed as it is not the correct pattern going forward.
- For the method
Added
- DnsServerDsc
- Added new resource
- DnsServerCache - resource to enforce cache settings (issue #196).
- DnsServerRecursion - resource to enforce recursion settings (issue #198).
- Added new private function
Get-ClassName
that returns the class name or optionally an array with the class name and all inherited base class named. - Added new private function
Get-LocalizedDataRecursive
that gathers all localization strings from an array of class names. This can be used in classes to be able to inherit localization strings from one or more base class. If a localization string key exist in a parent class's localization string file it will override the localization string key in any base class. - Fixed code coverage in the pipeline (issue #246).
- Added new resource
- ResourceBase
- Added new method
Assert()
tha callsAssert-Module
andAssertProperties()
.
- Added new method
- DnsRecordNs
- Added new resource to manage NS records
- DnsRecordNsScoped
- Added new resource to manage scoped NS records
- DnsServerDsSetting
- Added new resource to manage AD-integrated DNS settings
- DnsServerSettingLegacy
- A new resource to manage legacy DNS Server settings that are not supported by any DNS Server PowerShell cmdlet.
Changed
- DnsServerDsc
- BREAKING CHANGE: Renamed the module to DnsServerDsc (issue #179).
- BREAKING CHANGE: Removed the prefix 'x' from all MOF-based resources (issue #179).
- Renamed a MOF-based resource to use the prefix 'DSC' (issue #225).
- Fix stub
Get-DnsServerResourceRecord
so it throws if it is not mocked correctly (issue #204). - Switch the order in the deploy pipeline so that creating the GitHub release is made after a successful release.
- Updated stub functions to throw if they are used (when missing a mock in unit test) (issue #235).
- ResourceBase
- Added support for inherit localization strings and also able to override a localization string that exist in a base class.
- Moved more logic from the resources into the base class for the method
Test()
,Get()
, andSet()
. The base class now have three methodsAssertProperties()
,Modify()
, andGetCurrentState()
where the two latter ones must be overridden by a resource if calling the base methodsSet()
andGet()
. - Moved the
Assert-Module
from the constructor to a new methodAssert()
that is called fromGet()
,Test()
, andSet()
. The methodAssert()
also calls the methodAssertProperties()
. The methodAssert()
is not meant to be overridden, but can if there is a reason not to runAssert-Module
and orAssertProperties()
.
- Integration tests
- Added commands in the DnsRecord* integration tests to wait for the LCM before moving to the next test.
- DnsServerCache
- Moved to the same coding pattern as DnsServerRecursion.
- DnsServerEDns
- Moved to the same coding pattern as DnsServerRecursion.
- DnsServerScavenging
- Moved to the same coding pattern as DnsServerRecursion.
- DnsServerSetting
- Changed to use
Get-DnsServerSetting
andSet-DnsServerSetting
(issue #185). - BREAKING CHANGE: The property
DisableAutoReverseZones
have been renamed toDisableAutoReverseZone
. - BREAKING CHANGE: The property
ListenAddresses
have been renamed toListeningIPAddress
. - BREAKING CHANGE: The property
AllowUpdate
was changed to a boolean value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting (related to issue #101). - BREAKING CHANGE: The property
EnableDnsSec
was changed to a boolean value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting. - BREAKING CHANGE: The property
ForwardDelegations
was changed to a boolean value ($true
or$false
) since that is what the cmdletSet-DnsServerSetting
is expecting.
- Changed to use
Fixed
- Logic bug in DnsRecordPtr.expandIPv6String($string) (#255)
- Supporting tests added
Dependencies
- puppetlabs/pwshlib (>= 0.9.0 < 2.0.0)