Share via


How to change DNS settings for computers with static IP addresses?

Question

Wednesday, August 7, 2019 8:43 PM

We recently installed new DCs on our network and we're ready to remove the old ones. 

Most of our computer are set with static IP addresses, that still have the DNS settings pointing to the old servers. 

Is there a way to remote change those settings?

- New DCs are Windows Server 2019

- Clients are mostly Windows 10 Pro and a few Windows 7 Pro

All replies (8)

Tuesday, August 20, 2019 5:17 PM âś…Answered

Couldn't get a batch update to work. I ended up updating the machines manually.

:(


Wednesday, August 7, 2019 8:59 PM

Hi,

You can deploy a batch file with GPO that contains:

netsh
interface ip set dns "Ethernet0" static 8.8.8.8

You must change Ethernet0 with your specific network card, to show this, enter the following commands:

  1. netsh
  2. interface ip show config

Regards,

SAAD Youssef

______

Please remember to mark the replies as answer if they help, thank you!


Wednesday, August 7, 2019 10:07 PM

What if the network cards on the various computers have different designations?


Thursday, August 8, 2019 2:30 AM

Hi,

Thanks for posting in the forum.

I recommend you create script as a batch file and modify DNS server via Group policy. Please refer to the following link for detailed steps:

https://www.wincert.net/windows-server/set-dns-servers-via-gpo-server-2012-r2/

Best regards,

Hollis

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Thursday, August 8, 2019 7:47 AM

What if the network cards on the various computers have different designations?

Just create a multiple temporary OU depending of your different designations and deploy on each one of group policy objects.


Sunday, August 11, 2019 3:04 PM

Hi

Before connecting server 2019 with your new DCs, open all your clients then in command prompt type IPCONFIG /release

then power off all your clients. start your server 2019 then connect all your clients.

septviessuivront


Tuesday, August 13, 2019 7:53 AM

Hi,

Just want to confirm the current situations.

Please feel free to let us know if you need further help.

Best regards,

Hollis

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, August 16, 2019 7:12 AM

Hi,

Was your question resolved?

If you resolved it using our solution, please "mark it as answer" to help update this forum.

If you resolve it using it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

If no, please tell us the current situation in order to provide further help.

Best regards,

Hollis

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].