From fb6c361c7c544c223013468a0f63140dbc37fa90 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 3 Nov 2018 11:29:54 +0100 Subject: [PATCH] hostess: add page (#2541) --- pages/common/hostess.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/hostess.md diff --git a/pages/common/hostess.md b/pages/common/hostess.md new file mode 100644 index 000000000..998f6787d --- /dev/null +++ b/pages/common/hostess.md @@ -0,0 +1,19 @@ +# hostess + +> An idempotent command-line utility for managing your /etc/hosts file. + +- List domains, target ips 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 completely): + +`hostess off {{local.example.com}}`