-
Notifications
You must be signed in to change notification settings - Fork 55
DnsServerSettingLegacy
dscbot edited this page Aug 19, 2024
·
2 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
DnsServer | Key | String | Specifies the DNS server to connect to, or use 'localhost' for the current node. | |
DisjointNets | Write | Boolean | Indicates whether the default port binding for a socket used to send queries to remote DNS Servers can be overridden. | |
NoForwarderRecursion | Write | Boolean | TRUE if the DNS server does not use recursion when name-resolution through forwarders fails. | |
LogLevel | Write | UInt32 | Indicates which policies are activated in the Event Viewer system log. |
The DnsServerSettingLegacy DSC resource manages the Domain Name System (DNS) server legacy settings.
If the parameter DnsServer is set to 'localhost'
then the resource
can normally use the default credentials (SYSTEM) to configure the DNS server
settings. If using any other value for the parameter DnsServer make sure
that the credential the resource is run as have the correct permissions
at the target node and the necessary network traffic is permitted (WsMan
protocol). It is possible to run the resource with specific credentials using the
built-in parameter PsDscRunAsCredential.
This configuration will manage the DNS server legacy settings on the current node.
Configuration DnsServerSettingLegacy_CurrentNode_Config
{
Import-DscResource -ModuleName 'DnsServerDsc'
Node localhost
{
DnsServerSettingLegacy 'DnsServerLegacyProperties'
{
DnsServer = 'localhost'
DisjointNets = $false
NoForwarderRecursion = $true
LogLevel = 50393905
}
}
}
This configuration will manage the DNS server legacy settings on the current node.
Configuration DnsServerSettingLegacy_RemoteNode_Config
{
Import-DscResource -ModuleName 'DnsServerDsc'
Node localhost
{
DnsServerSettingLegacy 'DnsServerLegacyProperties'
{
DnsServer = 'dns1.company.local'
DisjointNets = $false
NoForwarderRecursion = $true
LogLevel = 50393905
}
}
}
- DnsRecordA
- DnsRecordAaaa
- DnsRecordAaaaScoped
- DnsRecordAScoped
- DnsRecordCname
- DnsRecordCnameScoped
- DnsRecordMx
- DnsRecordMxScoped
- DnsRecordNs
- DnsRecordNsScoped
- DnsRecordPtr
- DnsRecordSrv
- DnsRecordSrvScoped
- DnsServerADZone
- DnsServerCache
- DnsServerClientSubnet
- DnsServerConditionalForwarder
- DnsServerDiagnostics
- DnsServerDsSetting
- DnsServerEDns
- DnsServerForwarder
- DnsServerPrimaryZone
- DnsServerRecursion
- DnsServerRootHint
- DnsServerScavenging
- DnsServerSecondaryZone
- DnsServerSetting
- DnsServerSettingLegacy
- DnsServerZoneAging
- DnsServerZoneScope
- DnsServerZoneTransfer