Configure Preferred and Alternate DNS Settings

Can anyone help me in using DSC to set preferred and alternate DNS server settings on client servers? I’ve configured an http pull server, but am getting stumped as to what needs to be done next. Thanks in advance for any help.

You could use the xDNSServerAddress resource from the DSC Resource Kit, but it’s one of the handful of resources that depends on a cmdlet only available on Windows 8 / Windows Server 2012 or later. If you need to be able to configure Windows 2008 R2 DSC clients, you’d need to use or write a similar resource with a different implementation (most likely leveraging WMI’s Win32_NetworkAdapterConfiguration.SetDNSServerSearchOrder() method.)