Hosts Switcher
Manage and switch between multiple Hosts profiles. On macOS, previews, validates, and backs up before applying via system authorization with restore support.
Screenshots
Key Features
View all Hosts profiles, active status, and merged system hosts preview
hosts / switchhosts / hosts switcher / domain mapping
Flush local DNS resolver cache with system authorization
flush dns / flushdns / clear dns
Create a new custom Hosts profile
new hosts / add hosts profile / create hosts
Overview & Usage Guide
Save multiple Hosts profiles, preview changes, and apply them to the system. The features and safeguards below apply to macOS only: macOS uses system authorization so you do not need to launch the client as administrator.
- Creating or editing a profile saves only locally; press
Enteron a profile row to preview, then confirm to apply. - Current system contents are read directly from the system hosts file. Active status is read from the system managed block; editing a profile without re-applying marks it as "System using previous content".
- Existing system entries outside the managed block are preserved intact. If the same hostname within the same address family maps to different IPs, merging stops to avoid silently overwriting existing rules. IPv4 and IPv6 entries may coexist.
- Before writing, a backup is saved and verified, and writing aborts if the original file changed during confirmation. Atomic swap preserves the replaced file object; backups can be viewed, previewed, and restored from the action panel on "Current System Hosts".
- Writing the hosts file and flushing DNS report results separately. Canceling DNS authorization does not roll back an already written hosts file; you can flush DNS again or restore from backup.
- Broken fallback profiles are never loaded and corrupted local profiles are never overwritten. Merging stops if an external program corrupts the managed block structure—inspect the system hosts file first.
Configuration files are limited to 1 MiB and 256 local profiles. System authorization prompts, file permissions, read-only disks, or security software may block changes; the UI displays actual errors and never claims success falsely.
Platforms & Requirements
- Supported: macOS only
- Requires client version 1.1.8.5 or later.
- The Windows version is currently being reworked and is temporarily unavailable on the plugin marketplace for Windows.
Frequently Asked Questions (FAQ)
How do I install and launch "Hosts Switcher" in ZTools?
Open the Plugin Marketplace inside ZTools Workbench, search for "Hosts Switcher", and install it. Then type its name in the launcher bar to open it.
Is "Hosts Switcher" free? Which platforms are supported?
Yes, it is free to install with source code published in the ZTools-extensions repository. Supported platforms: macOS.