1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:42:09 +02:00
tldr/pages/common/hostess.md
2021-08-15 19:59:09 +02:00

20 lines
487 B
Markdown

# hostess
> An idempotent command-line utility for managing the `/etc/hosts` file.
> More information: <https://github.com/cbednarski/hostess>.
- List domains, target IP addresses and on/off status:
`hostess list`
- Add a domain pointing to your machine to your hosts file:
`hostess add {{local.example.com}} {{127.0.0.1}}`
- Remove a domain from your hosts file:
`hostess del {{local.example.com}}`
- Disable a domain (but don't remove it):
`hostess off {{local.example.com}}`