Crates.io | hostcat |
lib.rs | hostcat |
version | 0.5.2 |
source | src |
created_at | 2020-08-31 08:57:35.131419 |
updated_at | 2020-10-03 08:13:10.733547 |
description | UNIX Command Line tool to switch between Local Dns profiles |
homepage | https://github.com/aniketfuryrocks/HostCat |
repository | https://github.com/aniketfuryrocks/HostCat |
max_upload_size | |
id | 282984 |
size | 55,036 |
UNIX Command Line tool to switch between Local Dns profiles
HostCat allow users to create multiple profiles using which they can quickly switch between local domain names for ip 127.0.0.1 in /etc/hosts
For Example these two profiles
foo -> foo.com api.foo.com
bar -> bar.com api.bar.com
allow users to create local DNS for foo.com api.foo.com
and bar.com api.bar.com
and assign a profile to them, which can be switched using hostcat effortlessly
Use cargo
$ cargo install hostcat
$ sudo hostcat set -p foo -v "foo.com api.foo.com"
Here -p
donates a profile name and -v
donates its' Dns
$ sudo hostcat switch -p foo
$ sudo hostcat profiles
Tested on Manjaro Linux x86_6
Copyright (C) 2020 Aniket Prajapati
Licensed under the GNU GENERAL PUBLIC LICENSE