2018-11-03 10:29:54 +00:00
|
|
|
# hostess
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
> An idempotent command-line utility for managing the `/etc/hosts` file.
|
2019-06-07 11:58:29 +01:00
|
|
|
> More information: <https://github.com/cbednarski/hostess>.
|
2018-11-03 10:29:54 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- List domains, target IP addresses and on/off status:
|
2018-11-03 10:29:54 +00:00
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Disable a domain (but don't remove it):
|
2018-11-03 10:29:54 +00:00
|
|
|
|
|
|
|
`hostess off {{local.example.com}}`
|