macOS
brew install hostesslocal Homebrew formula metadata
brew / rank 3411
Idempotent command-line utility for managing your /etc/hosts file. Version 0.5.2 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#hostess.
install
brew install hostesslocal Homebrew formula metadata
nix profile install nixpkgs#hostessnixpkgs package indexes · pkgs/by-name/ho/hostess/package.nix · source: api.github.com
sudo pacman -S hostessArch Linux sync databases · hostess · source: geo.mirror.pkgbuild.com
overview
Idempotent command-line utility for managing your /etc/hosts file
history
hostess is a Go command-line utility for idempotently managing hosts-file entries. Its niche is deliberately small: add, remove, list, format, enable, disable, dump, and apply entries in `/etc/hosts` or the Windows hosts file without hand-editing the file.
Chris Bednarski's README frames the motivation plainly: developers edit hosts files for development, testing, debugging, and production DNS failures, and manual edits are annoying. The project turns that workflow into a repeatable CLI suitable for Makefiles and deployment scripts.
The changelog shows the package starting with v0.1.0 in 2015, then adding build reliability, fixed-format checks, Windows support, Go module support, and a significant CLI/API cleanup in 2020.
hostess reached users through GitHub releases and package managers including Homebrew, Nix, and Arch. Its cross-platform behavior matters for adoption because the Unix hosts file and Windows hosts file have different paths and formatting expectations.
Common usage is `hostess add name ip`, `hostess rm name`, `hostess ls`, `hostess off name`, `hostess on name`, `hostess fmt`, `hostess dump`, and `hostess apply`. The README notes that elevated privileges are required because hosts files are protected by the operating system.
Environment variables provide the small amount of configuration the tool needs: `HOSTESS_FMT` can override format detection and `HOSTESS_PATH` can override the hosts-file path.
hostess is a tidy example of a package-manager-friendly utility: one small executable, obvious system integration, no daemon, and behavior that replaces a risky manual edit. The 2020 refactor is also package-relevant because it removed an external CLI dependency and modernized Go tooling.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hostess | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:hostess |
|---|---|
| Version | 0.5.2 |
| Package manager | Homebrew |
| Homepage | https://github.com/cbednarski/hostess |
| Repository | https://github.com/cbednarski/hostess |
| Last updated | 2026-07-27T14:32:25+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
hostess
nix profile install nixpkgs#hostesshostess 0.5.2-5
An idempotent command-line utility for managing your /etc/hosts file.
https://github.com/cbednarski/hostess
sudo pacman -S hostesssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.