hosts

command module
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: GPL-2.0 Imports: 6 Imported by: 0

README

hosts-modifier

Hosts file manager

Introduction

Hosts-modifier is a program that aims to help you manage the system hosts file (/etc/hosts on linux and C:\Windows\system32\drivers\etc\hosts on Windows). It simplifies the process of adding, removing and listing lines in the file. (Adding and Removing require administrator or super user privileges in the console or terminal.)

This program is designed for developers to help them manage host files, which they often do. (PHP develpment with XAMPP or any LAMPP stack, Laravel, Blocking sites etc...).

Installation

Currently the only supported method of installation is building the program from source code. (Don't worry, go build is simple) Make sure you have golang installed for your operating system

go get github.com/BrosSquad/hosts

Make sure you've added $GOPATH/bin to the $PATH That's all.

Usage

hosts-modifier is a command line program

Get Help
$ hosts --help
Add Host
$ hosts add --host example.com --ip 127.0.0.1
  • If you don't pass ip, defaults to "127.0.0.1" (same as example above)
$ hosts add --host example.com
Remove Host
$ hosts remove --host example.com --ip 127.0.0.1
List Hosts
$ hosts list

Disclaimer

This program works only on Linux and on Windows, MacOS is not supported and it will never be, despite the fact that code for linux will (probably) work on MacOS. We won't accept any pull requests concerning MacOS and all Issues related to MacOS will promptly be closed. Other contributions like list filtering and other ideas are all welcome and will most likely be accepted and merged into main branch.

Licence

This program is licensed under the terms of the GNU GPL v2 only.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL