Skip to content

Commit 1c72be5

Browse files
authored
BREAKING CHANGE: DnsServerDsc: Removed the prefix 'x' (#241)
- DnsServerDsc - BREAKING CHANGE: Removed the prefix 'x' from all MOF-based resources (issue #179).
1 parent e03d8d2 commit 1c72be5

File tree

133 files changed

+472
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+472
-488
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions

source/DSCResources/DSC_xDnsServerADZone/DSC_xDnsServerADZone.schema.mof renamed to source/DSCResources/DSC_DnsServerADZone/DSC_DnsServerADZone.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerADZone")]
2-
class DSC_xDnsServerADZone : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerADZone")]
2+
class DSC_DnsServerADZone : OMI_BaseResource
33
{
44
[Key, Description("Name of the AD DNS zone")] String Name;
55
[Write, Description("AD zone dynamic DNS update option. Defaults to `'Secure'`."), ValueMap{"None","NonSecureAndSecure","Secure"}, Values{"None","NonSecureAndSecure","Secure"}] String DynamicUpdate;
Lines changed: 3 additions & 0 deletions

source/DSCResources/DSC_xDnsServerClientSubnet/DSC_xDnsServerClientSubnet.schema.mof renamed to source/DSCResources/DSC_DnsServerClientSubnet/DSC_DnsServerClientSubnet.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerClientSubnet")]
2-
class DSC_xDnsServerClientSubnet : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerClientSubnet")]
2+
class DSC_DnsServerClientSubnet : OMI_BaseResource
33
{
44
[Key, Description("Specifies the name of the client subnet.")] string Name;
55
[Write, Description("Specify an array (1 or more values) of IPv4 Subnet addresses in CIDR Notation.")] string IPv4Subnet[];
Lines changed: 7 additions & 0 deletions

source/DSCResources/DSC_xDnsServerConditionalForwarder/DSC_xDnsServerConditionalForwarder.psm1 renamed to source/DSCResources/DSC_DnsServerConditionalForwarder/DSC_DnsServerConditionalForwarder.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $script:localizedData = Get-LocalizedData -DefaultUICulture 'en-US'
1111
Get the state of a conditional forwarder.
1212
1313
.DESCRIPTION
14-
xDnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
14+
DnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
1515
1616
.PARAMETER Ensure
1717
Ensure whether the zone is absent or present.
@@ -95,7 +95,7 @@ function Get-TargetResource
9595
Set the state of a conditional forwarder.
9696
9797
.DESCRIPTION
98-
xDnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
98+
DnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
9999
100100
.PARAMETER Ensure
101101
Ensure whether the zone is absent or present.
@@ -240,7 +240,7 @@ function Set-TargetResource
240240
Test the state of a conditional forwarder.
241241
242242
.DESCRIPTION
243-
xDnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
243+
DnsServerConditionalForwarder can be used to manage the state of a single conditional forwarder.
244244
245245
.PARAMETER Ensure
246246
Ensure whether the zone is absent or present.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerConditionalForwarder")]
2-
class DSC_xDnsServerConditionalForwarder : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerConditionalForwarder")]
2+
class DSC_DnsServerConditionalForwarder : OMI_BaseResource
33
{
44
[Write, Description("Ensure whether the zone is absent or present."), ValueMap{"Present", "Absent"}, Values{"Present", "Absent"}] String Ensure;
55
[Key, Description("The name of the zone to manage.")] String Name;

source/DSCResources/DSC_xDnsServerDiagnostics/DSC_xDnsServerDiagnostics.schema.mof renamed to source/DSCResources/DSC_DnsServerDiagnostics/DSC_DnsServerDiagnostics.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerDiagnostics")]
2-
class DSC_xDnsServerDiagnostics : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerDiagnostics")]
2+
class DSC_DnsServerDiagnostics : OMI_BaseResource
33
{
44
[Key, Description("Specifies the DNS server to connect to, or use 'localhost' for the current node.")] String DnsServer;
55
[Write, Description("Specifies whether to enable the logging of DNS responses.")] Boolean Answers;

source/DSCResources/DSC_xDnsServerDiagnostics/README.md renamed to source/DSCResources/DSC_DnsServerDiagnostics/README.md

Lines changed: 1 addition & 1 deletion

source/DSCResources/DSC_xDnsServerForwarder/DSC_xDnsServerForwarder.schema.mof renamed to source/DSCResources/DSC_DnsServerForwarder/DSC_DnsServerForwarder.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerForwarder")]
2-
class DSC_xDnsServerForwarder : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerForwarder")]
2+
class DSC_DnsServerForwarder : OMI_BaseResource
33
{
44
[Key, Description("Specifies the resource is a single instance, the value must be `'Yes'`."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance;
55
[Write, Description("IP addresses of the forwarders")] String IPAddresses[];

source/DSCResources/DSC_xDnsServerPrimaryZone/DSC_xDnsServerPrimaryZone.schema.mof renamed to source/DSCResources/DSC_DnsServerPrimaryZone/DSC_DnsServerPrimaryZone.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerPrimaryZone")]
2-
class DSC_xDnsServerPrimaryZone : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerPrimaryZone")]
2+
class DSC_DnsServerPrimaryZone : OMI_BaseResource
33
{
44
[Key, Description("Name of the DNS Server primary zone")] String Name;
55
[Write, Description("Name of the DNS Server primary zone file. If not specified, defaults to 'ZoneName.dns'.")] String ZoneFile;
Lines changed: 3 additions & 0 deletions

source/DSCResources/DSC_xDnsServerRootHint/DSC_xDnsServerRootHint.schema.mof renamed to source/DSCResources/DSC_DnsServerRootHint/DSC_DnsServerRootHint.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerRootHint")]
2-
class DSC_xDnsServerRootHint : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerRootHint")]
2+
class DSC_DnsServerRootHint : OMI_BaseResource
33
{
44
[Key, Description("Specifies the resource is a single instance, the value must be `'Yes'`."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance;
55
[Required, Description("A hashtable that defines the name server. Key and value must be strings."), EmbeddedInstance("MSFT_KeyValuePair")] String NameServer[];
Lines changed: 3 additions & 0 deletions

source/DSCResources/DSC_xDnsServerSecondaryZone/DSC_xDnsServerSecondaryZone.schema.mof renamed to source/DSCResources/DSC_DnsServerSecondaryZone/DSC_DnsServerSecondaryZone.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerSecondaryZone")]
2-
class DSC_xDnsServerSecondaryZone : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerSecondaryZone")]
2+
class DSC_DnsServerSecondaryZone : OMI_BaseResource
33
{
44
[Key, Description("Name of the secondary zone")] String Name;
55
[Required, Description("IP address or DNS name of the secondary DNS servers")] String MasterServers[];

source/DSCResources/DSC_xDnsServerSetting/DSC_xDnsServerSetting.schema.mof renamed to source/DSCResources/DSC_DnsServerSetting/DSC_DnsServerSetting.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerSetting")]
2-
class DSC_xDnsServerSetting : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerSetting")]
2+
class DSC_DnsServerSetting : OMI_BaseResource
33
{
44
[Key, Description("Specifies the DNS server to connect to, or use 'localhost' for the current node.")] String DnsServer;
55
[Write, Description("Maximum number of host records returned in response to an address request. Values between `5` and `28` are valid.")] Uint32 AddressAnswerLimit;

source/DSCResources/DSC_xDnsServerSetting/README.md renamed to source/DSCResources/DSC_DnsServerSetting/README.md

Lines changed: 1 addition & 1 deletion

source/DSCResources/DSC_xDnsServerZoneAging/DSC_xDnsServerZoneAging.schema.mof renamed to source/DSCResources/DSC_DnsServerZoneAging/DSC_DnsServerZoneAging.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerZoneAging")]
2-
class DSC_xDnsServerZoneAging : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerZoneAging")]
2+
class DSC_DnsServerZoneAging : OMI_BaseResource
33
{
44
[Key, Description("Name of the DNS forward or reverse lookup zone.")] String Name;
55
[Required, Description("Option to enable scavenge stale resource records on the zone.")] Boolean Enabled;

source/DSCResources/DSC_xDnsServerZoneScope/DSC_xDnsServerZoneScope.schema.mof renamed to source/DSCResources/DSC_DnsServerZoneScope/DSC_DnsServerZoneScope.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerZoneScope")]
2-
class DSC_xDnsServerZoneScope : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerZoneScope")]
2+
class DSC_DnsServerZoneScope : OMI_BaseResource
33
{
44
[Key, Description("Specifies the name of the Zone Scope.")] string Name;
55
[Key, Description("Specify the existing DNS Zone to add a scope to.")] string ZoneName;

source/DSCResources/DSC_xDnsServerZoneScope/README.md renamed to source/DSCResources/DSC_DnsServerZoneScope/README.md

Lines changed: 1 addition & 1 deletion

source/DSCResources/DSC_xDnsServerZoneTransfer/DSC_xDnsServerZoneTransfer.schema.mof renamed to source/DSCResources/DSC_DnsServerZoneTransfer/DSC_DnsServerZoneTransfer.schema.mof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[ClassVersion("1.0.0.0"), FriendlyName("xDnsServerZoneTransfer")]
2-
class DSC_xDnsServerZoneTransfer : OMI_BaseResource
1+
[ClassVersion("1.0.0.0"), FriendlyName("DnsServerZoneTransfer")]
2+
class DSC_DnsServerZoneTransfer : OMI_BaseResource
33
{
44
[Key, Description("Name of the DNS zone")] String Name;
55
[Required, Description("Type of transfer allowed"), ValueMap{"None","Any","Named","Specific"}, Values{"None","Any","Named","Specific"}] String Type;
Lines changed: 3 additions & 0 deletions

source/DSCResources/DSC_xDnsServerADZone/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/DSCResources/DSC_xDnsServerClientSubnet/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

source/DSCResources/DSC_xDnsServerPrimaryZone/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/DSCResources/DSC_xDnsServerRootHint/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/DSCResources/DSC_xDnsServerZoneTransfer/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/DnsServerDsc.psd1

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,7 @@
3535
# Aliases to export from this module
3636
AliasesToExport = @()
3737

38-
DscResourcesToExport = @(
39-
'DnsRecordSrv'
40-
'DnsRecordSrvScoped'
41-
'xDnsRecord'
42-
'xDnsRecordMx'
43-
'xDnsServerADZone'
44-
'xDnsServerClientSubnet'
45-
'xDnsServerConditionalForwarder'
46-
'xDnsServerDiagnostics'
47-
'xDnsServerForwarder'
48-
'xDnsServerPrimaryZone'
49-
'xDnsServerRootHint'
50-
'xDnsServerSecondaryZone'
51-
'xDnsServerSetting'
52-
'xDnsServerZoneAging'
53-
'xDnsServerZoneScope'
54-
'xDnsServerZoneTransfer'
55-
)
38+
DscResourcesToExport = @()
5639

5740
<#
5841
Private data to pass to the module specified in RootModule/ModuleToProcess.

source/Examples/Resources/xDnsServerADZone/1-xDnsServerADZone_forward_config.ps1 renamed to source/Examples/Resources/DnsServerADZone/1-DnsServerADZone_forward_config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage an AD integrated DNS forward lookup zone
4040
#>
4141

42-
Configuration xDnsServerADZone_forward_config
42+
Configuration DnsServerADZone_forward_config
4343
{
4444
param
4545
(
@@ -52,7 +52,7 @@ Configuration xDnsServerADZone_forward_config
5252
Node localhost
5353
{
5454

55-
xDnsServerADZone 'AddForwardADZone'
55+
DnsServerADZone 'AddForwardADZone'
5656
{
5757
Name = 'MyDomainName.com'
5858
DynamicUpdate = 'Secure'

source/Examples/Resources/xDnsServerADZone/2-xDnsServerADZone_reverse_config.ps1 renamed to source/Examples/Resources/DnsServerADZone/2-DnsServerADZone_reverse_config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage an AD integrated DNS reverse lookup zone
4040
#>
4141

42-
Configuration xDnsServerADZone_reverse_config
42+
Configuration DnsServerADZone_reverse_config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

4646
Node localhost
4747
{
48-
xDnsServerADZone 'addReverseADZone'
48+
DnsServerADZone 'addReverseADZone'
4949
{
5050
Name = '1.168.192.in-addr.arpa'
5151
DynamicUpdate = 'Secure'

source/Examples/Resources/DnsServerCache/1-SetCacheSettings_Config.ps1 renamed to source/Examples/Resources/DnsServerCache/1-DnsServerCache_SetCacheSettings_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ First version.
3838
This configuration will change the cache settings on the DNS server.
3939
#>
4040

41-
Configuration SetCacheSettings_Config
41+
Configuration DnsServerCache_SetCacheSettings_Config
4242
{
4343
Import-DscResource -ModuleName 'DnsServerDsc'
4444

source/Examples/Resources/xDnsServerClientSubnet/1-xDnsServerClientSubnet_config.ps1 renamed to source/Examples/Resources/DnsServerClientSubnet/1-DnsServerClientSubnet_config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage a DNS client subnet
4040
#>
4141

42-
Configuration xDnsServerClientSubnet_config
42+
Configuration DnsServerClientSubnet_config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

4646
Node localhost
4747
{
48-
xDnsServerClientSubnet 'ClientSubnet1'
48+
DnsServerClientSubnet 'ClientSubnet1'
4949
{
5050
Name = 'London'
5151
IPv4Subnet = @('10.1.0.0/16', '10.8.0.0/16')
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage a DNS server conditional forwarder
4040
#>
4141

42-
Configuration xDnsServerConditionalForwarder_config
42+
Configuration DnsServerConditionalForwarder_config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

4646
Node localhost
4747
{
48-
xDnsServerConditionalForwarder 'Forwarder1'
48+
DnsServerConditionalForwarder 'Forwarder1'
4949
{
5050
Name = 'London'
5151
MasterServers = @('10.0.1.10', '10.0.2.10')

source/Examples/Resources/xDnsServerDiagnostics/1-xDnsServerDiagnostics_CurrentNode_Config.ps1 renamed to source/Examples/Resources/DnsServerDiagnostics/1-DnsServerDiagnostics_CurrentNode_Config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage a DNS server's diagnostics settings
4040
#>
4141

42-
Configuration xDnsServerDiagnostics_CurrentNode_Config
42+
Configuration DnsServerDiagnostics_CurrentNode_Config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

4646
Node localhost
4747
{
48-
xDnsServerDiagnostics 'Diagnostics'
48+
DnsServerDiagnostics 'Diagnostics'
4949
{
5050
DnsServer = 'localhost'
5151
Answers = $true

source/Examples/Resources/xDnsServerDiagnostics/2-xDnsServerDiagnostics_RemoteNode_Config.ps1 renamed to source/Examples/Resources/DnsServerDiagnostics/2-DnsServerDiagnostics_RemoteNode_Config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Updated author, copyright notice, and URLs.
3939
This configuration will manage a DNS server's diagnostics settings
4040
#>
4141

42-
Configuration xDnsServerDiagnostics_RemoteNode_Config
42+
Configuration DnsServerDiagnostics_RemoteNode_Config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

4646
Node localhost
4747
{
48-
xDnsServerDiagnostics 'Diagnostics'
48+
DnsServerDiagnostics 'Diagnostics'
4949
{
5050
DnsServer = 'dns1.company.local'
5151
Answers = $true

source/Examples/Resources/DnsServerEDns/1-SetCacheTimeout_Config.ps1 renamed to source/Examples/Resources/DnsServerEDns/1-DnsServerEDns_SetCacheTimeout_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ First version.
3939
extension mechanisms for DNS (EDNS) on the DNS server.
4040
#>
4141

42-
Configuration SetCacheTimeout_Config
42+
Configuration DnsServerEDns_SetCacheTimeout_Config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

source/Examples/Resources/DnsServerEDns/2-EnableProbes_Config.ps1 renamed to source/Examples/Resources/DnsServerEDns/2-DnsServerEDns_EnableProbes_Config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ First version.
3939
(EDNS) on the DNS server.
4040
#>
4141

42-
Configuration EnableProbes_Config
42+
Configuration DnsServerEDns_EnableProbes_Config
4343
{
4444
Import-DscResource -ModuleName 'DnsServerDsc'
4545

0 commit comments

Comments
 (0)