Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aniketfuryrocks/hostcat
UNIX Command Line tool to switch between Local Dns profiles
https://github.com/aniketfuryrocks/hostcat
command-line-tool dns local-dns rust unix
Last synced: 18 days ago
JSON representation
UNIX Command Line tool to switch between Local Dns profiles
- Host: GitHub
- URL: https://github.com/aniketfuryrocks/hostcat
- Owner: aniketfuryrocks
- License: gpl-3.0
- Created: 2020-08-30T12:00:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T22:01:25.000Z (over 2 years ago)
- Last Synced: 2024-10-08T13:29:57.265Z (about 1 month ago)
- Topics: command-line-tool, dns, local-dns, rust, unix
- Language: Rust
- Homepage:
- Size: 3.67 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HostCat
UNIX Command Line tool to switch between Local Dns profilesHostCat 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
## Install
Use [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
```shell script
$ cargo install hostcat
```## Creating a profile
```shell script
$ sudo hostcat set -p foo -v "foo.com api.foo.com"
```
Here `-p` donates a profile name and `-v` donates its' Dns## Switch profile
```shell script
$ sudo hostcat switch -p foo
```## Print Profiles
```shell script
$ sudo hostcat profiles
```> Tested on Manjaro Linux x86_6
## License & Copyright
Copyright (C) 2020 Aniket Prajapati
Licensed under the **[GNU GENERAL PUBLIC LICENSE](LICENSE)**
## Contributors
+ [Aniket Prajapati](https://github.com/aniketfuryrocks) @[[email protected]](mailto:[email protected]) , [eAdded](http://www.eadded.com)