Skip to content

DnsServerConditionalForwarder

dscbot edited this page Aug 19, 2024 · 2 revisions

DnsServerConditionalForwarder

Parameters

Parameter Attribute DataType Description Allowed Values
Ensure Write String Ensure whether the zone is absent or present. Present, Absent
Name Key String The name of the zone to manage.
MasterServers Write StringArray[] The IP addresses the forwarder should use. Mandatory if Ensure is present.
ReplicationScope Write String Whether the conditional forwarder should be replicated in AD, and the scope of that replication. Default is None. None, Custom, Domain, Forest, Legacy
DirectoryPartitionName Write String The name of the directory partition to use when the ReplicationScope is Custom. This value is ignored for all other replication scopes.
ZoneType Read String The zone type

Description

The DnsServerConditionalForwarder DSC resource manages a conditional forwarder on a Domain Name System (DNS) server.

You can manage the master servers, forwarder time-out, recursion, recursion scope, and directory partition name for a conditional forwarder zone.

Examples

Example 1

This configuration will manage a DNS server conditional forwarder

Configuration DnsServerConditionalForwarder_config
{
    Import-DscResource -ModuleName 'DnsServerDsc'

    Node localhost
    {
        DnsServerConditionalForwarder 'Forwarder1'
        {
            Name             = 'London'
            MasterServers    = @('10.0.1.10', '10.0.2.10')
            ReplicationScope = 'Forest'
            Ensure           = 'Present'
        }
    }
}
Clone this wiki locally