macOS
brew install hostesslocal Homebrew formula metadata
brew / rank 3369
Idempotent command-line utility for managing your /etc/hosts file. Version 0.5.2 via Homebrew; verified 2026-09-12. 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.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/hostsC:\Windows\System32\drivers\etc\hostsexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hostess | cli | global executable |
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.
https://github.com/cbednarski/hostess
install metadata
| Package key | brew:hostess |
|---|---|
| Version | 0.5.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/hostess |
| Homepage | https://github.com/cbednarski/hostess |
| Repository | https://github.com/cbednarski/hostess |
| License | MIT |
| Source archive | https://github.com/cbednarski/hostess/archive/refs/tags/v0.5.2.tar.gz |
| Last updated | 2026-09-12T03:22:38Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hostess |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
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.