A command line utility to programmatically edit the host name database file (/etc/hosts)
hostage is a command line utility to programmatically edit the host name database, which is typically the /etc/hosts plain text file in many UNIX and UNIX-like operating systems. hostage can list and validate a host name database file, add entries to the database, remove entries by address, and remove entries by host name.
hostage is a command line utility to programmatically edit the host name database, which is typically the /etc/hosts plain text file in many UNIX and UNIX-like operating systems. hostage can list and validate a host name database file, add entries to the database, remove entries by address, and remove entries by host name.
To install hostage, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install hostage
To see what files were installed by hostage, run:
port contents hostage
To later upgrade hostage, run:
sudo port selfupdate && sudo port upgrade hostage
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.