/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Change DNS

08/28/2018 612 views
Is there a way that I can can set the DNS servers for all our connected machines?  We have 3 DNS servers, that will be changing, and we want to be able to push this change out through Kace so all machines have all 3 servers, and to ensure it's consistent.

Thank you!
Scott
0 Comments   [ + ] Show comments

Comments


All Answers

1
You should be able to accomplish this through the Scripting section. The command to change a DNS programmatically is as follows:-

NETSH INTERFACE IP SET DNS "LOCAL AREA CONNECTION" 192.168.1.1
NETSH INTERFACE IP ADD DNS "LOCAL AREA CONNECTION" 192.168.1.2 INDEX=2

The INDEX=2 bit specifies your secondary DNS address, add an INDEX=3 for a third DNS entry
Answered 08/29/2018 by: Druis
Third Degree Green Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ