Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 457 Bytes

File metadata and controls

17 lines (13 loc) · 457 Bytes

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]