Link Search Menu Expand Document


An idempotent command-line utility for managing the /etc/hosts file. More information:

  • List domains, target ips and on/off status:

hostess list

  • Add a domain pointing to your machine to your hosts file:

hostess add {{}} {{}}

  • Remove a domain from your hosts file:

hostess del {{}}

  • Disable a domain (but don't remove it completely):

hostess off {{}}