Hosts File Generator

Prefer not to use hosts.click? You can generate your hosts file entries right here.

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'"

Run these commands as Administrator / root (or with sudo), then flush your cache:

  • ipconfig /flushdns
  • sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • sudo systemd-resolve --flush-caches
Check out our browser
extensions!
Pro