CLI-001 · go · cli reference ↗
cli mode
Add, remove, list, and show entries from the shell.
One binary, no daemons. Add a single hostname, a comma-separated list, or remove a whole CIDR range. Use --dryrun to preview changes, --comment to tag entries by source, and --flush to refresh the DNS cache after writes.
$ brew install txn2/tap/txeh $ sudo txeh add 127.0.0.1 myapp.local + 127.0.0.1 myapp.local $ txeh list ip 127.0.0.1 localhost myapp.local $ sudo txeh remove host myapp.local --dryrun # preview only, no write