A CLI for working with Hosts files.
Add host (allow adding tags/groups to hosts)
Delete host by IP, Host or both
Block a host by routing to 0.0.0.0
Check for existing host by IP, host or both. (With proper exit codes!) Maybe check should be specific for specific IP HOST combo, and list for regex/common?
list by regex list by IP
Remove duplicates, sort alphabetically
Copy external hosts file (option to --overwrite / --merge also) (can schedule to run every day)
Backup hosts file to local dir, git repo or S3.
Restore from old backup
Open hosts file in preferred editor
Cat out hosts file with nice highlighting/formatting
Self update hosts
Get/Set config values.
Percentage of hosts which are ipv4/ipv6 Number of hosts Number of unique hosts/IPs
Ensure all is well
Spit out help for commands
More logging.
No logging.
Help per commands