Skip to content

Instantly share code, notes, and snippets.

@techniq
Created September 12, 2012 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techniq/3703746 to your computer and use it in GitHub Desktop.
Save techniq/3703746 to your computer and use it in GitHub Desktop.
Set Windows DNS Server
@ECHO OFF
set DNS_IP=
set /P DNS_IP=DNS server ip address: %=%
echo Setting DNS server...
netsh interface ip set dns "Local Area Connection 9" static %DNS_IP%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment