Need help with hostctl?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

guumaster
640 Stars 29 Forks MIT License 225 Commits 10 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 53,859
golang
hostsfi...
Nuxt.js
express...
163 commits
# 184,831
s3
sa-mp
hostsfi...
Postgre...
34 commits
# 386,781
PHP
icon-pa...
Visual ...
hostsfi...
3 commits
# 29,533
Lua
Bash
bash-pr...
bash-ha...
2 commits
# 1,924
coreml-...
ios11
mac
php7
1 commit
# 314,474
Shell
HTML
hostsfi...
golang
1 commit
# 159,831
golang
nextjs
Zsh
zsh-com...
1 commit
# 588,720
Go
hostsfi...
dns
golang
1 commit

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 CODEOFCONDUCT.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


George Kontridze

💻

Pacodes

⚠️ 💻

BarbUk

💻 🤔

Brett Mack

💻

Peter Thaleikis

💻 📖

simohamed

🤔 💻

Fabian Grutschus

🤔

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.