Hi,
I'd be happy to help you out with your question. Sorry for the inconvenience caused.
To accomplish this task, follow the steps below:
- On a domain controller or a computer with Remote Server Administration Tools (RSAT) installed, open the Group Policy Management Console.
- Create a new GPO or select an existing GPO that you want to modify for this purpose.
- Within the GPO Editor, navigate to the following path: Computer Configuration → Policies → Windows Settings → Security Settings → Network List Manager Policies.
- In the right pane, locate and double-click on the network connection type that applies to your servers, such as "All Networks" or "Domain Networks."
- The Network List Manager Policies dialog box will open. Switch to the "Name" tab and find the network connection name that corresponds to your servers.
- Right-click on the network connection name and select "Properties" from the context menu.
- In the connection properties dialog box, go to the "DNS Servers" tab.
- Choose the option labeled "Specify DNS Server addresses."
- Now, enter the desired DNS server addresses in the "Primary DNS server" and "Secondary DNS server" fields.
- Save the changes by clicking "OK."
- Apply the GPO to the appropriate organizational units (OUs) that contain your servers.
After the GPO is applied, your servers will receive the updated DNS server settings. Please note that it may take some time for Group Policy settings to propagate to all the affected servers.
For more Information, please refer to following resources :-
Changing Primary DNS Entry via Group Policy - https://social.technet.microsoft.com/Forums/lync/en-US/acee1483-160a-46f6-9a3b-9b109d1fc0d2/changing-primary-dns-entry-via-group-policy?forum=winserverDS
If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.