-
Notifications
You must be signed in to change notification settings - Fork 55
xDnsServerRootHint
Johan Ljunggren edited this page Jul 9, 2021
·
3 revisions
⚠️ DEPRECATED! The resource has been replaced by DnsServerRootHint in the DSC resource module DnsServerDsc.
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' . |
Yes |
NameServer | Required | MSFT_KeyValuePair[] | A hashtable that defines the name server. Key and value must be strings. |
The xDnsServerRootHint DSC resource manages root hints on a Domain Name System (DNS) server.
This configuration will manage the DNS server root hints
Configuration xDnsServerRootHint_set_config
{
Import-DscResource -ModuleName 'xDnsServer'
Node localhost
{
xDnsServerRootHint 'RootHints'
{
IsSingleInstance = 'Yes'
NameServer = @{
'A.ROOT-SERVERS.NET.' = '2001:503:ba3e::2:30'
'B.ROOT-SERVERS.NET.' = '2001:500:84::b'
'C.ROOT-SERVERS.NET.' = '2001:500:2::c'
'D.ROOT-SERVERS.NET.' = '2001:500:2d::d'
'E.ROOT-SERVERS.NET.' = '192.203.230.10'
'F.ROOT-SERVERS.NET.' = '2001:500:2f::f'
'G.ROOT-SERVERS.NET.' = '192.112.36.4'
'H.ROOT-SERVERS.NET.' = '2001:500:1::53'
'I.ROOT-SERVERS.NET.' = '2001:7fe::53'
'J.ROOT-SERVERS.NET.' = '2001:503:c27::2:30'
'K.ROOT-SERVERS.NET.' = '2001:7fd::1'
'L.ROOT-SERVERS.NET.' = '2001:500:9f::42'
'M.ROOT-SERVERS.NET.' = '2001:dc3::353'
}
}
}
}
This configuration will remove the DNS server root hints
Configuration xDnsServerRootHint_remove_config
{
Import-DscResource -ModuleName 'xDnsServer'
Node localhost
{
xDnsServerRootHint 'RootHints'
{
IsSingleInstance = 'Yes'
NameServer = @{ }
}
}
}
- 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