dohdec

Lookup and decode DNS records using DNS-over-HTTPS (DoH)

MIT License

Downloads
6K
Stars
20
Committers
4
dohdec - Strict type checking Latest Release

Published by hildjj about 2 months ago

Turned on strict and noImplicitAny in TypeScript, then fixed all of the issues.

One thing that may be noticeable is there are now a good number of runtime assertions of incoming types. If this causes you an error that you think could be more gracefully handled, please file an issue as soon as possible.

dohdec - Strict type checking

Published by hildjj about 2 months ago

Turned on strict and noImplicitAny in TypeScript, then fixed all of the issues.

One thing that may be noticeable is there are now a good number of runtime assertions of incoming types. If this causes you an error that you think could be more gracefully handled, please file an issue as soon as possible.

dohdec - Fix types

Published by hildjj about 2 months ago

Fix the type signatures for the lookup() functions.

dohdec - Require node 18, MIT License

Published by hildjj about 2 months ago

  • [BREAKING] now requires node v18+
  • [BREAKING] Switched to the MIT License
  • [FEATURE] can now disable DNSSEC validation
  • [BUG] Fixed #43, -g should now work on the command line. Note that -d is required for POST to work.
  • [SECURITY] Moved from the ip dependency, which has an unresolved CVE, to ip-address.
  • [CHORE] moved mock-dns-server to a separate repository
  • [CHORE] moved to typedoc for doc generation
  • [CHORE] moved to a hand-rolled release approach rather than lerna
  • [DOCS] fixed README.md typos in example, spelled "CloudFlare" correctly, and added a link to the Tangerine project[B
dohdec - Do not use @types/dns-packet

Published by hildjj almost 3 years ago

The @types/dns-packet package does not provide enough benefit to be worth leaking its types to users of this package.

dohdec - Split into CLI and library

Published by hildjj about 3 years ago

install dohdec-cli if you want the dohdec CLI. dohdec is just the library now.

dohdec - Bring up to date

Published by hildjj about 3 years ago

Major

  • Added padding for both JSON and DNS formats. All requests will be multiples of 128 bytes.
  • Add HTTP/2 support by switching to got
  • Added typescript types
  • Switched to ES6 module format. This was a BREAKING change, which required a major version bump.
  • Added reverse lookups when IP addresses are specified for a name.

Minor

  • Removed large punycode dependency.
  • Reworked verbose mode so a restart is no longer used. Verbosity is now an integer; you can specify "-v" multiple times to get more verbose from the command line.
  • Made CLI testable.
  • Mocked all network traffic (including DNS-over-TLS) for testing.

Housekeeping

  • Updated dependencies.
  • Switched to GitHub Actions from travis.
  • master -> main
  • Updated linting to match my other projects.