hasantayyar / myhosts
A small tool to manage hosts entries
Installs: 58
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 1
Language:CSS
Type:project
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-11-23 15:04:13 UTC
README
MyHosts is a tool to manage your hosts entries.
Installation
$ composer require hasantayyar/myhosts:dev-master
or add these lines to your composer.json
{
"require": {
"hasantayyar/myhosts": "dev-master"
}
}
then run
$ composer update
Usage
Add a new hosts entry for hostname as mydev.host and ip address as 127.0.0.1
$ sudo myhosts add mydev.host
Add a new host entry for hostname as mydev.host and a custom ip address
$ sudo myhosts mydev.host add 193.5.5.1
Remove a host entry
$ sudo myhosts mydev.host delete 193.5.5.1
List host entries added by myhosts
$ sudo myhosts list