Change DNS
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
Scott
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Druis
6 years ago
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