Skip to content

UNIX Command Line tool to switch between Local Dns profiles

License

Notifications You must be signed in to change notification settings

aniketfuryrocks/HostCat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HostCat

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

Install

Use cargo

$ cargo install hostcat

Creating a profile

$ sudo hostcat set -p foo -v "foo.com api.foo.com"

Here -p donates a profile name and -v donates its' Dns

Switch profile

$ sudo hostcat switch -p foo

Print Profiles

$ sudo hostcat profiles

Tested on Manjaro Linux x86_6

License & Copyright

Copyright (C) 2020 Aniket Prajapati

Licensed under the GNU GENERAL PUBLIC LICENSE

Contributors

About

UNIX Command Line tool to switch between Local Dns profiles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages