hoster 0.1.1

Small parser and lexer library for Hosts file format
Documentation
  • Coverage
  • 0%
    0 out of 47 items documented0 out of 22 items with examples
  • Size
  • Source code size: 47.74 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.62 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CodeLieutenant

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/MacOS 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

  1. Download from Releases page.

  2. Building from Source

Make sure you have golang, make and git installed for your operating system

$ git clone https://github.com/BrosSquad/hosts.git hosts && cd hosts
$ git checkout tags/v2.3.2 -b v2.3.2
$ make build VERSION=2.3.2 ENVIRONMENT=production RACE=0
$ make install

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 example.com 127.0.0.1
  • If you don't pass ip, defaults to "127.0.0.1" (same as example above)
$ hosts add example.com

Remove Host

$ hosts remove example.com

List Hosts

$ hosts list

Licence

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