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
You can flush the Windows DNS by running the following command in PowerShell.
ipconfig /flushdns