This application allows you to easily manage your hosts file.
Download latest build from here. https://github.com/rokuosan/hst/actions/workflows/build.yaml
If there are no artifacts, you have to build from source.
$ git clone https://github.com/rokuosan/hst
Requirements:
- GraalVM 21 or higher
Run this command.
$ ./gradlew nativeCompile
After that, you can find executable native binary in ./build/native/nativeCompile/
Flag | Type | Description |
---|---|---|
-a, --address | String(IP Address) | |
-n, --hostname | String | |
--aliases | String(separate with Space) |
To add new entry like 192.168.10.100 server.local web.local
.
$ sudo hst add -a 192.168.10.100 -n server.local --aliases web.local