hostess
命令手册An idempotent command-line utility for managing your /etc/hosts file. More information: https://github.com/cbednarski/hostess.
hostess list
hostess add {{local.example.com}} {{127.0.0.1}}
hostess del {{local.example.com}}
hostess off {{local.example.com}}