CMD - Host File
Commands for host file manipulation;
List host file to command window:
type %WINDIR%\System32\Drivers\Etc\Hosts
Add entry to host file:
echo <IP ADDRESS> <DNS NAME> >> %WINDIR%\System32\Drivers\Etc\Hosts
Example:
echo 8.8.8.8 google.com >> %WINDIR%\System32\Drivers\Etc\Hosts
Comments
Post a Comment