dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xDnsServerAddress/1-xDnsServerAddress.ps1

<#
    .EXAMPLE
    Configure DNS Server for the Ethernet adapter
#>

configuration Example
{
    param
    (
        [string[]] $NodeName = 'localhost'
    )

    Import-DscResource -Module xNetworking

    Node $NodeName
    {
        xDnsServerAddress DnsServerAddress
        {
            Address        = '127.0.0.1'
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv4'
            Validate       = $true
        }
    }
}