Hosts File Generator
Prefer not to use hosts.click? Generate hosts file entries right here.
Manual mappings
Add one or more IP + domain pairs.
Hosts File Entries
Copy these lines into your local hosts file.
Bulk upload CSV
Upload a CSV file with IP,Domain pairs.
Example row: 203.0.113.10,staging.example.com
What's the hosts file?
A plain-text file that maps hostnames to IP addresses, letting you override DNS on your computer.
Locations:
C:\Windows\System32\drivers\etc\hosts/etc/hosts
In Windows you can run this one-liner to open Notepad as admin:
powershell -Command "Start-Process notepad -Verb runAs -ArgumentList 'C:\Windows\System32\drivers\etc\hosts'"
Flush DNS cache
Run these commands as Administrator / root (or with sudo), then flush your cache:
ipconfig /flushdnssudo dscacheutil -flushcache; sudo killall -HUP mDNSRespondersudo systemd-resolve --flush-caches