Manage the /etc/hosts file. More information: https://github.com/cbednarski/hostess.
/etc/hosts
hostess list
hostess add {{local.example.com}} {{127.0.0.1}}
hostess del {{local.example.com}}
hostess off {{local.example.com}}