GPO Method to Push DNS Settings to All PCs in a Domain Environment

IT Researcher 26 Reputation points
2024-05-14T11:21:51.6533333+00:00

I am currently facing a challenging task regarding setting DNS configurations for all PCs. I aim to push DNS entries to ensure that all the machines use the correct DNS servers for domain resolution using Group Policy Object.

Methods that were already checked :

Using the Group Policy settings in "Computer Configuration > Administrative Templates > Network > DNS Client > DNS servers". Set it to "Enable" and add IP Address list. Problem here was that, it was only supported on Windows XP. The changes were not reflected on Windows 10 PC's when we tried.

Setting up Group Policy Object present in "Computer Configuration → Policies → Windows Settings → Security Settings → Network List Manager Policies". As mentioned in the link (https://learn.microsoft.com/en-us/answers/questions/1279987/changing-primary-and-secondary-dns-via-gpo). The options informed in this link was not present.

I have already found methods of doing this using a PowerShell and a bat script, but wanted to confirm if such options are available in GPO itself that I may have missed.

Thank you for your assistance.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,002 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 14,020 Reputation points MVP
    2024-05-14T11:37:50.93+00:00

    Use https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-dnsclient#dns_nameserver

    To implement, follow https://learn.microsoft.com/en-us/windows/client-management/understanding-admx-backed-policies


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Jing Zhou 2,790 Reputation points Microsoft Vendor
    2024-05-16T02:00:37.61+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    Yes, currently this DNS entry in GPO settings only supports limited OS, it's more recommended to apply the DNS setting by PowerShell or Netsh command.

    Sorry for the inconvenience caused and hope this answer help you well.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments