Created
June 19, 2017 18:11
-
-
Save gjacobrobertson/3365aca10d2a4231dcd02bb5b66b8c5d to your computer and use it in GitHub Desktop.
Windows DNS
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
@echo off | |
echo 127.0.0.1 global.jobs.test > %temp%\temphosts.txt | |
echo 127.0.0.1 bravo.jobs.test >> %temp%\temphosts.txt | |
type C:\WINDOWS\system32\drivers\etc\hosts >> %temp%\temphosts.txt | |
copy /Y %temp%\temphosts.txt C:\WINDOWS\system32\drivers\etc\hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment