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

Popular posts from this blog

HOW TO - Deploy HP Universal Print Driver w/ Intune

Launch Day - Setting up a custom URL for a Blogger

HOW TO - Open SharePoint Resource in New Tabs w/ Column Formats