hostm
v1.0.1-rc.1
Published
CLI dns and hosts tool. Uses DNS over HTTPS. Updates host, unblock from custom resolver.
Downloads
3
Maintainers
Readme
CLI application with collections of subjectively useful dns and hosts tools. Uses DNS over HTTPS. This tool can to update your hosts file and resolving a domain with your chosen public DoH service. The creator of this tool is very concerned about privacy and security.
Scalable. Blazing fast. Not using AI, ML or blockchain.
Check out hostm on npmjs.
If you're looking for other good DoH tools, check out this section of cURL Github Wiki.
Or maybe you'll be also interested in DNSCrypt.
Commands
help
- there should be one
resolve <domain name> <doh-server>
(WIP)- resolve the IP of a domain name. By default it uses Google's public DNS over https. You can also choose other DNS over https servers.
- second argument still WIP. Try first argument.
domain-update
- updates all of the IPs on your hosts. NO TESTS. DON'T RUN THIS COMMAND YET.
unblock <domain name> <doh-server>
(WIP)
Usage
- Install node
git clone https://github.com/kemalelmizan/hostm
npm install
node index.js <command> <argument-1> <argument-2> ... <argument-n>
- example:
node index.js resolve kemal.elmizan.com
- example:
Public DoH Servers
List of public DNS over HTTPS services. There are some at cURL Github Wiki, but some of them are still WIP. Contribute if you know more free services that can be added.
- Cloudflare. Apparently it's the fastest.
Dependencies
Todos
Feel free to contribute.
- [x] resolve command
- [ ] second argument of resolve to choose DoH service
- [ ] refactor
domain-update
, handle edge-cases and rejected promises - [ ] add tests
- [ ] unblock command
Contributing
Please read contributing guidelines and code of conduct. If you want to create a new issue, please follow the issue template. If you want to create a pull request, please follow the pull request template.
License
The MIT License