4 DnsServerEDns
dscbot edited this page 2025-04-12 12:03:02 +00:00

Parameters

Parameter Attribute DataType Description Allowed Values
DnsServer Key System.String The host name of the Domain Name System (DNS) server, or use 'localhost' for the current node.
CacheTimeout Write System.String Specifies the number of seconds that the DNS server caches EDNS information.
EnableProbes Write System.Boolean Specifies whether to enable the server to probe other servers to determine whether they support EDNS.
EnableReception Write System.Boolean Specifies whether the DNS server accepts queries that contain an EDNS record.
Reasons Read DnsServerReason[] Returns the reason a property is not in desired state.

Description

The DnsServerEDns DSC resource manages extension mechanisms for DNS (EDNS) on a Microsoft Domain Name System (DNS) server.

Examples

Example 1

This configuration will change the cache timeout for extension mechanisms for DNS (EDNS) on the DNS server.

Configuration DnsServerEDns_SetCacheTimeout_Config
{
    Import-DscResource -ModuleName 'DnsServerDsc'

    Node localhost
    {
        DnsServerEDns 'SetCacheTimeout'
        {
            DnsServer    = 'localhost'
            CacheTimeout = '00:15:00'
        }
    }
}

Example 2

This configuration will enable probes for the extension mechanisms for DNS (EDNS) on the DNS server.

Configuration DnsServerEDns_EnableProbes_Config
{
    Import-DscResource -ModuleName 'DnsServerDsc'

    Node localhost
    {
        DnsServerEDns 'EnableProbes'
        {
            DnsServer    = 'localhost'
            EnableProbes = $true
        }
    }
}

Example 3

This configuration will allow to accepts queries for the extension mechanisms for DNS (EDNS) on the DNS server.

Configuration DnsServerEDns_EnableReception_Config
{
    Import-DscResource -ModuleName 'DnsServerDsc'

    Node localhost
    {
        DnsServerEDns 'EnableReception'
        {
            DnsServer       = 'localhost'
            EnableReception = $true
        }
    }
}