A command-line tool to manage your system's hosts file with profiles, enabling easy switching and automation.
hostctl is a command-line developer tool that provides advanced management for the system hosts file (/etc/hosts or Windows equivalent). It simplifies the tedious process of manually editing hosts entries by allowing users to organize hostnames into profiles and toggle them as needed, bringing cleanliness and automation to hosts file management.
Developers and system administrators who frequently need to manage local hostname mappings for different projects, environments, or Docker containers, and want to avoid manual editing of the hosts file.
Developers choose hostctl because it treats the hosts file as a configurable resource with profile-based management, enabling version control of profiles and providing Docker integration, which streamlines workflow compared to manual editing or simpler scripts.
Your dev tool to manage /etc/hosts like a pro!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows grouping hostnames into separate profiles for different projects, enabling clean separation and easy management as highlighted in the features list.
Automatically syncs host entries with running Docker or Docker Compose containers, streamlining development workflows directly from the README.
Profiles can be imported from text files, making it easy to track changes in Git or other version control systems, as stated in the documentation.
Works consistently on Linux, macOS, and Windows by recognizing the appropriate hosts file path for each system, per the installation notes.
Every modification to the hosts file requires sudo or administrator rights, which can interrupt workflow and pose security concerns, as warned in the README.
Lacks a graphical user interface, which might be a barrier for users accustomed to GUI-based system tools, limiting accessibility.
Only manages the system hosts file and does not integrate with broader DNS or network configuration tools, restricting its use to basic host mapping.
The README notes it's tested on Ubuntu and Windows 10, implying possible untested edge cases on other operating systems or versions.