hostess
brew install hostess
v0.5.2
MIT
Idempotent command-line utility for managing your /etc/hosts file
126
30-day installs · #3161
363
90-day · #3275
1.3k
365-day · #3411
882
★ GitHub stars · updated 6y ago
Build dependencies
GitHub topics
cli
dns
Links
- https://github.com/cbednarski/hostess
- GitHub: cbednarski/hostess
- Brew formula source: Formula/h/hostess.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"go"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Idempotent command-line utility for managing your /etc/hosts file",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:40+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "hostess",
"github_default_branch": "master",
"github_last_commit_at": "2020-05-02T04:03:39Z",
"github_readme_excerpt": "# hostess [](https://travis-ci.org/cbednarski/hostess) [](https://ci.appveyor.com/project/cbednarski/hostess/branch/master) [](http://godoc.org/github.com/cbednarski/hostess)\n\nAn **idempotent** command-line utility for managing your `/etc/hosts`* file.\n\n hostess add local.example.com 127.0.0.1\n hostess add staging.example.com 10.0.2.16\n\nWhy? Because you edit `/etc/hosts` for development, testing, and debugging.\nBecause sometimes DNS doesn\u0027t work in production. And because editing\n`/etc/hosts` by hand is a pain. Put hostess in your `Makefile` or deploy scripts\nand call it a day.\n\n\\* And `C:\\Windows\\System32\\drivers\\etc\\hosts` on Windows.\n\n**Note: 0.4.0 has backwards incompatible changes in the API and CLI.** See\n`CHANGELOG.md` for details.\n\n## Installation\n\nDownload a [precompiled release](https://github.com/cbednarski/hostess/releases)\nfrom GitHub, or build from source (with a [recent version of Go](https://golang.org/dl)):\n\n git clone https://github.com/cbednarski/hostess\n cd hostess\n make install\n\n## Usage\n\nRun `hostess` or `hostess -h` to see a full list of commands.\n\n**Note** The hosts file is protected. On unixes you will need to use `sudo` or\nrun the `hostess` command as root. On Windows, you will need to run `hostess`\nfrom an elevated prompt (right click and _Run as administrator_).\n\n## Format\n\nOn unixes, hostess follows the format specified by `man hosts`, with one line\nper IP address:\n\n 127.0.0.1 localhost hostname2 hostname3\n 127.0.1.1 machine.name\n # 10.10.20.30 some.host\n\nOn Windows, hostess writes each hostname on its own line.\n\n 127.0.0.1 localhost\n 127.0.0.1 hostname2\n 127.0.0.1 hostname3\n\n## Configuration\n\nhostess may be configured via environment variables.\n\n- `HOSTESS_FMT` may ",
"github_repo": "cbednarski/hostess",
"github_stars": 882,
"github_topics": [
"cli",
"dns"
],
"homepage": "https://github.com/cbednarski/hostess",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 126,
"installs_365d": 1299,
"installs_90d": 363,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "hostess",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 3161,
"rank_365d": 3411,
"rank_90d": 3275,
"raw_hash": "95cf53b6a0321883",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/h/hostess.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.5.2",
"versioned_formulae": [],
"why_use_this": null
}