Skip to content

Commit 666fca0

Browse files
authored
DnsServerSetting: Refactor the resource to use cmdlet *-DnsServerSetting (#257)
- DnsServerSetting - BREAKING CHANGE: A few properties that are not supported by any DNS Server PowerShell cmdlet was moved to the new resource _DnsServerSettingLegacy_. - Changed to use `Get-DnsServerSetting` and `Set-DnsServerSetting` ([issue #185](#185)). - BREAKING CHANGE: The property `DisableAutoReverseZones` have been renamed to `DisableAutoReverseZone`. - BREAKING CHANGE: The property `ListenAddresses` have been renamed to `ListeningIPAddress`. - BREAKING CHANGE: The property `AllowUpdate` was changed to a boolean value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting` is expecting (related to [issue #101](#101)). - BREAKING CHANGE: The property `EnableDnsSec` was changed to a boolean value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting` is expecting. - BREAKING CHANGE: The property `ForwardDelegations` was changed to a boolean value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting` is expecting. - BREAKING CHANGE: The properties `DsPollingInterval` and `DsTombstoneInterval` has been removed ([issue #252](#252)). Use the resource _DnsServerDsSetting_ to enforce these properties. - DnsServerSettingLegacy - A new resource to manage legacy DNS Server settings that are not supported by any DNS Server PowerShell cmdlet.
1 parent 8f0de03 commit 666fca0

20 files changed

+4220
-527
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
`RecursionTimeout` has been removed ([issue #200](https://github.com/dsccommunity/DnsServerDsc/issues/200)).
3232
To enforce theses properties, use resource _DnsServerRecursion_ using the
3333
properties `Enable`, `RetryInterval`, and `Timeout` respectively.
34+
- BREAKING CHANGE: A few properties that are not supported by any DNS
35+
Server PowerShell cmdlet was moved to the new resource _DnsServerSettingLegacy_.
36+
- BREAKING CHANGE: The properties `DsPollingInterval` and `DsTombstoneInterval`
37+
has been removed ([issue #252](https://github.com/dsccommunity/DnsServerDsc/issues/252)).
38+
Use the resource _DnsServerDsSetting_ to enforce these properties.
39+
3440
- ResourceBase
3541
- For the method `Get()` the overload that took a `[Microsoft.Management.Infrastructure.CimInstance]`
3642
was removed as it is not the correct pattern going forward.
@@ -59,6 +65,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5965
- Added new resource to manage scoped NS records
6066
- DnsServerDsSetting
6167
- Added new resource to manage AD-integrated DNS settings
68+
- DnsServerSettingLegacy
69+
- A new resource to manage legacy DNS Server settings that are not supported
70+
by any DNS Server PowerShell cmdlet.
6271

6372
### Changed
6473

@@ -95,6 +104,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
95104
- Moved to the same coding pattern as _DnsServerRecursion_.
96105
- DnsServerScavenging
97106
- Moved to the same coding pattern as _DnsServerRecursion_.
107+
- DnsServerSetting
108+
- Changed to use `Get-DnsServerSetting` and `Set-DnsServerSetting`
109+
([issue #185](https://github.com/dsccommunity/xDnsServer/issues/185)).
110+
- BREAKING CHANGE: The property `DisableAutoReverseZones` have been renamed
111+
to `DisableAutoReverseZone`.
112+
- BREAKING CHANGE: The property `ListenAddresses` have been renamed
113+
to `ListeningIPAddress`.
114+
- BREAKING CHANGE: The property `AllowUpdate` was changed to a boolean
115+
value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting`
116+
is expecting (related to [issue #101](https://github.com/dsccommunity/xDnsServer/issues/101)).
117+
- BREAKING CHANGE: The property `EnableDnsSec` was changed to a boolean
118+
value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting`
119+
is expecting.
120+
- BREAKING CHANGE: The property `ForwardDelegations` was changed to a boolean
121+
value (`$true` or `$false`) since that is what the cmdlet `Set-DnsServerSetting`
122+
is expecting.
98123

99124
### Fixed
100125

debug.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
invoke-pester .\tests\Unit\DSC_DnsServerSetting.Tests.ps1

0 commit comments

Comments
 (0)