Created
March 1, 2017 17:24
-
-
Save rafabarzotto/13818feb891c30fb1575872ffb6e6ead to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem ## Enter your IPv4 DNS Server IP addresses where indicated and run script with administrative privileges. | |
@ECHO OFF | |
set nomePlaca="Ethernet" | |
set vardns1=208.67.222.123 | |
set vardns2=208.67.220.123 | |
ECHO Setting Primary DNS | |
netsh int ip set dns name=%nomePlaca% source=static %vardns1% primary | |
ipconfig /flushdns | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem ## Enter your IPv4 DNS Server IP addresses where indicated and run script with administrative privileges. | |
@ECHO OFF | |
set nomePlaca="Ethernet" | |
set vardns1=208.67.222.123 | |
set vardns2=208.67.220.123 | |
ECHO Setting Primary DNS | |
netsh int ip set dns name=%nomePlaca% source=dhcp | |
ipconfig /flushdns | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment