mirror of
https://github.com/dsccommunity/DnsServerDsc.git
synced 2026-04-27 06:45:51 +03:00
Page:
DnsServerRootHint
Pages
DnsRecordA
DnsRecordAScoped
DnsRecordAaaa
DnsRecordAaaaScoped
DnsRecordCname
DnsRecordCnameScoped
DnsRecordMx
DnsRecordMxScoped
DnsRecordNs
DnsRecordNsScoped
DnsRecordPtr
DnsRecordSrv
DnsRecordSrvScoped
DnsRecordTxt
DnsRecordTxtScoped
DnsServerADZone
DnsServerCache
DnsServerClientSubnet
DnsServerConditionalForwarder
DnsServerDiagnostics
DnsServerDsSetting
DnsServerEDns
DnsServerForwarder
DnsServerPrimaryZone
DnsServerRecursion
DnsServerRootHint
DnsServerScavenging
DnsServerSecondaryZone
DnsServerSetting
DnsServerSettingLegacy
DnsServerZoneAging
DnsServerZoneScope
DnsServerZoneTransfer
Home
xDnsRecord
xDnsRecordMx
xDnsRecordSrv
xDnsServerADZone
xDnsServerClientSubnet
xDnsServerConditionalForwarder
xDnsServerDiagnostics
xDnsServerForwarder
xDnsServerPrimaryZone
xDnsServerRootHint
xDnsServerSecondaryZone
xDnsServerSetting
xDnsServerZoneAging
xDnsServerZoneScope
xDnsServerZoneTransfer
No results
3
DnsServerRootHint
dscbot edited this page 2025-04-12 12:03:02 +00:00
Table of Contents
Parameters
| 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. |
Description
The DnsServerRootHint DSC resource manages root hints on a Domain Name System (DNS) server.
Examples
Example 1
This configuration will manage the DNS server root hints
Configuration DnsServerRootHint_set_config
{
Import-DscResource -ModuleName 'DnsServerDsc'
Node localhost
{
DnsServerRootHint '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'
}
}
}
}
Example 2
This configuration will remove the DNS server root hints
Configuration DnsServerRootHint_remove_config
{
Import-DscResource -ModuleName 'DnsServerDsc'
Node localhost
{
DnsServerRootHint 'RootHints'
{
IsSingleInstance = 'Yes'
NameServer = @{ }
}
}
}
This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Home
Resources
- DnsRecordA
- DnsRecordAaaa
- DnsRecordAaaaScoped
- DnsRecordAScoped
- DnsRecordCname
- DnsRecordCnameScoped
- DnsRecordMx
- DnsRecordMxScoped
- DnsRecordNs
- DnsRecordNsScoped
- DnsRecordPtr
- DnsRecordSrv
- DnsRecordSrvScoped
- DnsRecordTxt
- DnsRecordTxtScoped
- DnsServerADZone
- DnsServerCache
- DnsServerClientSubnet
- DnsServerConditionalForwarder
- DnsServerDiagnostics
- DnsServerDsSetting
- DnsServerEDns
- DnsServerForwarder
- DnsServerPrimaryZone
- DnsServerRecursion
- DnsServerRootHint
- DnsServerScavenging
- DnsServerSecondaryZone
- DnsServerSetting
- DnsServerSettingLegacy
- DnsServerZoneAging
- DnsServerZoneScope
- DnsServerZoneTransfer
This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.