macOS
brew install hostesslocal Homebrew formula metadata
安装
brew install hostesslocal Homebrew formula metadata
nix profile install nixpkgs#hostessnixpkgs package indexes · pkgs/by-name/ho/hostess/package.nix · 来源: api.github.com
sudo pacman -S hostessArch Linux sync databases · hostess · 来源: geo.mirror.pkgbuild.com
概览
Idempotent command-line utility for managing your /etc/hosts file
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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\hosts可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hostess | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/cbednarski/hostess
安装元数据
| 软件包键 | brew:hostess |
|---|---|
| 版本 | 0.5.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hostess |
| 主页 | https://github.com/cbednarski/hostess |
| 仓库 | https://github.com/cbednarski/hostess |
| 许可证 | MIT |
| 源码归档 | https://github.com/cbednarski/hostess/archive/refs/tags/v0.5.2.tar.gz |
| 最后更新 | 2026-09-12T03:22:38Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 hostess来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.