Skip to content

codeccoop/hosts-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hosts-cli

A CLI to handle /etc/hosts file as a local DNS resolver

Install

wget -q -O - https://raw.githubusercontent.com/codeccoop/hosts-cli/main/install.sh | bash -
source .profile

Usage

  • Show help:
  • Add a domain: dns add [-i x.x.x.x] [-g group] example.com
  • Drop a domain: dns drop [-s] example.com
  • Enable domains: dns enable [-s] [-g group] [example.com]
  • Disable domains: dns disable [-s] [-g group] [example.com]

About

A CLI to handle /etc/hosts file as a local DNS resolver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages