Skip to content

Instantly share code, notes, and snippets.

@gjacobrobertson
Created June 19, 2017 18:11
Show Gist options
  • Save gjacobrobertson/3365aca10d2a4231dcd02bb5b66b8c5d to your computer and use it in GitHub Desktop.
Save gjacobrobertson/3365aca10d2a4231dcd02bb5b66b8c5d to your computer and use it in GitHub Desktop.
Windows DNS
@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