JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q22238F
  • License MIT

A swiss army of dns and hosts tool. Uses DNS over HTTPS. Updates host, unblock from custom resolver.

Package Exports

  • hostm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hostm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hostm Logo

Look at these badges

License Contributors Node Issues Pull requests Last commit Top language Size Maintenance Report Color Important Sketchy Useless Following the Open Source community standard Funny


hostm: a swiss army of subjectively useful dns and hosts tool. Uses DNS over HTTPS. Updates host, unblock from custom resolver. Scalable. Blazing fast.

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

  1. help
    • there should be one
  2. resolve <domain name> <dns-service> (WIP)
  3. domain-update
    • updates all of the IPs on your hosts. NO TESTS. DON'T RUN THIS COMMAND YET.
  4. unblock <domain name> <dns-service> (WIP)

Usage

  1. Install node
  2. npm i hostm or git clone https://github.com/kemalelmizan/hostm
  3. npm install
  4. node index.js <command> <argument-1> <argument-2> ... <argument-n>
    • example: node index.js resolve kemal.elmizan.com

DNS Services

List of DNS over HTTPS service. 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.

  1. Google
  2. Cloudflare. Apparently it's the fastest.

Dependencies

  1. Axios
  2. Hostile

Todos

Feel free to contribute.

  1. resolve command
  2. second argument of resolve to choose DoH service
  3. refactor domain-update, handle edge-cases and rejected promises
  4. add tests
  5. 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