• Stars
    star
    1,056
  • Rank 43,682 (Top 0.9 %)
  • Language
    Go
  • License
    MIT License
  • Created over 4 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Your dev tool to manage /etc/hosts like a pro!

Tests GitHub Release Go Report Card License All Contributors Coverage Mentioned in Awesome Go

hostctl

Your dev tool to manage /etc/hosts like a pro!

This tool gives you more control over the use of your hosts file. You can have multiple profiles and switch them on/off as you need.

Why?

It is a tedious task to handle the hosts file by editing manually. With this tool you can automate some aspects to do it cleaner and quick.

Features

  • Manage groups of host names by profile.
  • Enable/disable complete profiles.
  • Add/remove groups of host names.
  • Add profiles directly from a text file that you can add to your git repo or any VCS.
  • Sync a profile with Docker or Docker Compose containers.

Documentation

You can read about how to use this tool here:

Or you can start directly on the Docs homepage.

Sample Usage

sample usage

Installation

Go to release page and download the binary you prefer.

Or read about other installation methods on different systems here

Linux/Mac/Windows and permissions

The tool recognize your system and use the right hosts file, it will use /etc/hosts on Linux/Mac and C:/Windows/System32/Drivers/etc/hosts on Windows.

SUDO/ADMIN: You will need permissions for any action that modify hosts file, add sudo to the commands below when needed. If you are on windows, make sure you run it as administrator.

WARNING: it should work on any system. It's tested on Ubuntu and Windows 10. If you can confirm it works on other system, please let me know here.

Contributing

Be sure to read CONTRIBUTING and CODE_OF_CONDUCT.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


George Kontridze

πŸ’»

Pacodes

⚠️ πŸ’»

BarbUk

πŸ’» πŸ€”

Brett Mack

πŸ’»

Peter Thaleikis

πŸ’» πŸ“–

simohamed

πŸ€” πŸ’»

Fabian Grutschus

πŸ€”

Pablo Caderno

πŸ’»

Josh Brown

πŸ›

Lukas M

πŸ› πŸ€”

This project follows the all-contributors specification. Contributions of any kind welcome!

Author(s)

If you like this tool and think is worth it, you can invite me a coffee:

paypal.me/guumaster ko-fi.com/guumaster

LICENSE

MIT license

More Repositories

1

surveygen

generate interactive surveys from yaml files
Go
14
star
2

aur-publish-docker-action

Github Action to publish an AUR package
Shell
14
star
3

logsymbols

golang package with simple log symbols
Go
8
star
4

env-replacer

An envsubst replacement
Go
8
star
5

go-tts

A golang CLI wrapper over Google Translate TTS service.
Shell
6
star
6

dir-cleaner

A golang CLI to scan and clean directories (mainly node_modules)
Go
6
star
7

elm-weather-exercise

A Weather Exercise in Elm
Elm
5
star
8

mongodb-change-stream

Watch mongo changes with Golang
Go
4
star
9

textifier

A simple tool to transform text on your terminal or Go program.
Go
4
star
10

cligger

Simple CLI logger with symbols and colors.
Go
3
star
11

excusator

Responde con precisiΓ³n a la pregunta de "cuando se acabarΓ‘ el proyecto?"
JavaScript
3
star
12

monorepo-components-tags

Get tags from your git monorepo
Go
2
star
13

gorky

Go app to change wallpaper.
Go
2
star
14

multi-wget

Go
2
star
15

dotfiles

My dotfiles
Shell
2
star
16

elm-counter-list

A simple counter list in elm
Elm
1
star
17

resume

My online resume
1
star
18

playground-docker-gpu-jupyterlab

Docker image with gpu support and jupyterlab installed
Jupyter Notebook
1
star
19

homebrew-tap

brew tap formula for hostctl
Ruby
1
star
20

guumaster

The profile thing
1
star
21

bookdbtastic

Mongoosastic enabled bookdb example
JavaScript
1
star
22

deeplearning.ai

Notebooks for Neural Networks and Deep Learning
Jupyter Notebook
1
star
23

restify-echo-server

A simple restify echo server
JavaScript
1
star
24

random-collections

Random collections of internets bits that caught my eye once
1
star
25

mongoose-elasticsearch-geosearch

Testing mongoose, elasticsearch and geospatial searches
JavaScript
1
star
26

guumaster.github.io

HTML
1
star
27

colab-nbs

My Colab notebooks
Jupyter Notebook
1
star
28

hugo-shortcodes

A collection of reusable shortcodes for static Hugo sites
HTML
1
star
29

medusa-plugins

An idea to have cobra subcommands as separate binary plugins
1
star