DSCResources/MSFT_xDnsServerForwarder/en-US/about_xDnsServerForwarder.help.txt

.NAME
    xDnsServerForwarder
 
.DESCRIPTION
    The xDnsServerForwarder DSC resource manages the DNS forwarder list of a Domain Name System (DNS) server. If you prefer one of the forwarders, put that forwarder first in the series of forwarder IP addresses.
 
.PARAMETER IsSingleInstance
    Key - String
    Allowed values: Yes
    Specifies the resource is a single instance, the value must be 'Yes'.
 
.PARAMETER IPAddresses
    Write - StringArray
    IP addresses of the forwarders
 
.PARAMETER UseRootHint
    Write - Boolean
    Specifies if you want to use root hint or not.
 
.EXAMPLE 1
 
This configuration will set the DNS forwarders
 
Configuration xDnsServerForwarder_set_config
{
    Import-DscResource -ModuleName 'xDnsServer'
 
    Node localhost
    {
 
        xDnsServerForwarder 'SetForwarders'
        {
            IsSingleInstance = 'Yes'
            IPAddresses = @('192.168.0.10', '192.168.0.11')
            UseRootHint = $false
        }
    }
}
 
.EXAMPLE 2
 
This configuration will remove all the DNS forwarders
 
Configuration xDnsServerForwarder_remove_config
{
    Import-DscResource -ModuleName 'xDnsServer'
 
    Node localhost
    {
        xDnsServerForwarder 'SetForwarders'
        {
            IsSingleInstance = 'Yes'
            IPAddresses = @()
            UseRootHint = $false
        }
    }
}
 
.EXAMPLE 3
 
This configuration will remove all the DNS forwarders
 
Configuration xDnsServerForwarder_SetUseRootHint_Config
{
    Import-DscResource -ModuleName 'xDnsServer'
 
    Node localhost
    {
        xDnsServerForwarder 'SetUseRootHints'
        {
            IsSingleInstance = 'Yes'
            UseRootHint = $true
        }
    }
}