You can manage the hosts file without paying anyone. Plenty of people should.
This is the free stack, plus the one case where a one-time paid app is rational.
Free options that actually work
1. SwitchHosts
Best free GUI for most developers.
- Win / Mac / Linux
- Profiles and groups
- Open source
Cost of free: flush DNS yourself; live with the Electron-style desktop footprint.
2. PowerToys Hosts File Editor (Windows)
Best free "just edit the file" tool on Windows if PowerToys is already installed.
Cost of free: weak multi-environment story, Windows only.
3. Terminal / text editor + sudo
Best free option for people who already script their machines.
sudo nano /etc/hosts
# then flush DNS for your OS
Or keep profile files and copy them into place.
Cost of free: no seatbelts unless you add backups and checks.
4. Built-in Notepad / TextEdit (elevated)
Works. Painful. Easy to edit a copy that is not the system file.
Use only for rare one-line changes.
5. Gas Mask
Free historically. Not a free recommendation in 2026. Unmaintained.
Paid option worth mentioning
Locahl
Not free. One-time purchase. Cross-platform.
You pay for automatic DNS flush, backups, and a more guided multi-environment UI.
Pay only if the free tools are costing you real time (stale DNS, broken hosts, no shared OS story).
Free vs paid decision
Stay free if:
- you edit hosts weekly or less
- you remember DNS flush
- OSS or zero budget is the rule
Consider paid if:
- you switch environments daily
- teammates keep hitting Permission denied / stale cache
- you want one tool on Windows, macOS, and Linux
Suggested free setups
Solo, mixed OS, free only
SwitchHosts + a shell alias for DNS flush.
Windows-only, rare edits
PowerToys Hosts + ipconfig /flushdns.
Power users
~/hosts-profiles/local
~/hosts-profiles/staging
./hosts-use <name> # copies + flushes
Do not confuse "free editor" with "safe workflow"
Every free path still needs:
- Backup before big edits
- One active mapping per hostname
- DNS flush after apply
- Terminal verification before blaming the app
Those four steps matter more than the logo on the window.
Free default: SwitchHosts. If free is costing you time on flush and backups, Locahl is the paid cross-platform alternative.
Top comments (0)