Skip to content

Instantly share code, notes, and snippets.

@DilanLivera
Last active March 9, 2023 23:39
Show Gist options
  • Save DilanLivera/2ea05367d813481e6b8ac87ced919ab1 to your computer and use it in GitHub Desktop.
Save DilanLivera/2ea05367d813481e6b8ac87ced919ab1 to your computer and use it in GitHub Desktop.
Hosts file

Hosts file

Windows

File location: C:\Windows\System32\drivers\etc

You can use the following command to open the host file.

# VS Code
code C:\Windows\System32\drivers\etc\hosts

# Notepad
notepad.exe C:\Windows\System32\drivers\etc\hosts

Flush the Windows DNS

You can flush the Windows DNS by running the following command in PowerShell.

ipconfig /flushdns

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment