百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hostctl

> 开发工具
开源

您的开发工具,可以像专业人士一样管理 /etc/hosts!

1.2K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

您的开发工具,可以像专业人士一样管理 /etc/hosts!

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

hostctl

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:

  • Getting started guide
  • Usage Guides
  • CLI commands, options and flags

Or you can start directly on the Docs homepage.

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)

  • guumaster

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goclideveloper-toolsdnsetchosts

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具