hostfiles1p
A simple script to manage multiple sets of hostfiles on *nix systems
Usage
hostfiles [options]
Options: --enable
Enable
one
or
more
hostfile
fragments
--disable
Disable
one
or
more
hostfile
fragments
--status
Display
the
status
of
various
hostfile
fragments
--interactive
Present
an
interactive
list
of
hostfile
fragments
Options
-
--enable -
Enable one or more hostfile fragments. This option may be specified multiple times and multiple fragments may be specified in a comma-separated list.
-
--disable -
Disable one or more hostfile fragments. This option may be specified multiple times and multiple fragments may be specified in a comma-separated list.
-
--status -
Display a list of fragments and their status. A '+' indicates the fragment is enabled. A '*' indicates an enabled fragment has been changed in /etc/hosts.
-
--interactive -
Presents an interactive list of hostfile fragment to enable or disable.
Overview
This program will read the hostfile fragments specified to be enabled from /etc/hostfiles/<fragment_name> and add them to /etc/hosts. It will remove any fragments from /etc/hosts that are specified to be disabled.
Releases
4 releases since Debian 10 (Buster); the text changed 2 times.