Last checked: 2026-11-29
The hosts file maps domain names to IP addresses before any DNS server is asked, so it is the quick way to point a domain at a test server. SwitchHosts keeps each environment as a named set of entries and writes the file for you.
What it does well
- Sets you can combine. Keep entries for development, staging and other environments in groups and folders, and switch on one or several at once.
- Remote hosts. Load entries from a URL and refresh them on a schedule, so a team can share one list.
- Editor. Syntax highlighting for addresses, domains and comments, find and replace, and a shortcut to comment a line out.
- Menu bar switch. Turn sets on and off from the menu bar icon without opening the main window.
Who it is for
Web developers and testers who point the same domains at different servers, and administrators who maintain a shared list of entries.
Good to know
A hosts file only maps whole host names to addresses: no wildcards, no ports, no paths. To rewrite single requests or redirect by URL, use a debugging proxy such as Proxyman or Charles. macOS may ask for authorisation when the file is written.
How to install
- On the download page, choose the build for your chip, or the universal one.
- Open the disk image and drag SwitchHosts to Applications.
- The first time you open it, macOS asks you to confirm an app downloaded from the internet; click Open.
FAQ
Is SwitchHosts free?
Yes. SwitchHosts is free and open source under the Apache licence, on macOS, Windows and Linux.
Why does SwitchHosts ask for my password?
The hosts file belongs to the system, so macOS may ask for authorisation when SwitchHosts writes a new set of entries to it.
Where does SwitchHosts keep my entries?
In the .SwitchHosts folder inside your home folder. Copy that folder for a complete backup, or use the export in the app, which saves the hosts data without preferences.
Is it safe?
Apps downloaded outside the App Store make macOS ask for confirmation on first launch. If macOS blocks the app, see our security-warning guide.
Does it run on your Mac?
No reports yet. Tried it? Be the first to say how it went.
| macOS | 27 | 26 Tahoe | 15 Sequoia | 14 Sonoma | 13 Ventura | 12 Monterey | ≤11 |
|---|---|---|---|---|---|---|---|
| Apple Silicon | |||||||
| Intel |
Not sure? Apple menu → About This Mac → "Chip" (M1–M5) or "Processor" (Intel).
Installation & Troubleshooting
How do I disable SIP and grant Terminal Full Disk Access?
System Integrity Protection shields core macOS files. Leave it on unless a developer's own instructions call for changing it; Terminal needs Full Disk Access to run some install scripts.
How do I open an app that Gatekeeper blocks?
Gatekeeper and quarantine trigger "damaged" or "unidentified developer" warnings. Allow the app with Open Anyway in System Settings → Privacy & Security, or clear the quarantine flag with xattr.
Why do I see security warnings when opening an app?
"Unidentified developer" and "cannot verify" warnings appear for apps Apple has not notarized. After the first blocked launch, click Open Anyway in System Settings → Privacy & Security.
What if the app is damaged or the disk image is corrupted?
"App is damaged and can't be opened" comes from quarantine flags; clear them with xattr -cr on the app. A corrupted DMG usually means an interrupted download.
What is Rosetta 2 and how do I install it?
Rosetta 2 lets Apple Silicon Macs run Intel apps. Install it with softwareupdate --install-rosetta in Terminal.
Why can't I install this app on an Intel Mac?
Some releases are Apple-Silicon-only and will not install on Intel due to architecture mismatch. Use a universal build or an Intel-matched release.
How to fix Adobe app installation errors?
Most Adobe install failures on Apple Silicon come from a missing Rosetta 2 or a stuck Creative Cloud helper. Install Rosetta, quit CCXProcess in Activity Monitor and run the installer again.
What to use instead of Launchpad on macOS 26?
macOS 26 replaced Launchpad with the Apps view in Spotlight. Use Spotlight, the Apps view or a third-party launcher to find and open apps.