Package: wnpp Severity: wishlist * Package name : hostsed Version : 0.2.0 Upstream Author : Li <socrates...@users.noreply.github.com> * URL : https://github.com/socrateslee/hostsed * License : MIT Programming Lang: Python Description : A tiny hosts file command line edit tool
hostsed is a simple tool for editing your hosts file (/etc/hosts). You can add or delete a DNS entry via command line shell (e.x. bash). You can achieve the same result with `sudo nano /etc/hosts` but you would need to inspect and manage the file by hand. By contrast, hostsed handles formatting and other "management" details, and can be easily incorporated in bash scripts. This utility would additionally benefit from native packaging to avoid the complicated installation process required to install a sudo-driven utility (sudo pip install?!!) It looks like vagrant-hostmanager supports this task (modify localhost /etc/host) but requires a Vagrantfile (example, https://github.com/devopsgroup-io/vagrant-hostmanager/issues/246 ). This is great for shared team conventions, but not useful for ad-hoc changes. docker-etchosts seems to only edit container hostfiles, not localhost. python3-reconfigure appears to be a library, not a command line utility.