Configure Preferred and Alternate DNS Settings

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Dave Wyatt Dave Wyatt 2 years, 4 months ago.

  • Author
    Posts
  • #17149
    Profile photo of David Burgett
    David Burgett
    Participant

    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.

  • #17169
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    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 [url=http://msdn.microsoft.com/en-us/library/aa393295(v=vs.85).aspx]Win32_NetworkAdapterConfiguration.SetDNSServerSearchOrder()[/url] method.)

You must be logged in to reply to this topic.