Tom Pusateri
c11116822a
Update DoH example from internet-draft to RFC 8484. ( #58 )
2020-04-17 15:21:31 +02:00
Tom Pusateri
428d5adc8f
Add DNS over HTTPS (doh) client example. ( #32 )
...
Fixes #30 .
2018-03-27 22:18:27 +02:00
Tom Pusateri
0cf5761579
Add TLS example and fix TCP example. ( #31 )
...
* Add TLS example and fix TCP buffer management.
Allow all examples to run from examples directory.
* Inspect response data decoding length, not request.
Simplify package require().
2018-03-27 22:06:14 +02:00
Tom Pusateri
cd7caa6619
Fix buffer management for stream encoding. ( #29 )
...
* Fix buffer management for stream encoding.
* use slice() instead of Buffer.from() for Node v4
2018-03-27 20:53:57 +02:00
Tom Pusateri
7904e095e9
Add encoder for stream transports (TCP/TLS). ( #23 )
...
* Add encoder for stream transports (TCP/TLS).
Fixes #16 .
* Add README text and return null on short buffer.
2018-02-04 19:58:34 +00:00
Tom Pusateri
5228547b00
Fix some glaring issues reported by eslint.
2018-01-10 22:54:36 -05:00
Tom Pusateri
2e59f463e2
Fix encode/decode for root name ('.'). Add tests. Fixes #13 .
2018-01-10 19:42:09 +01:00
Tom Pusateri
0e95e8e18d
Convert Opcodes to/from strings.
2018-01-09 20:52:08 -05:00
Tom Pusateri
2474fead8f
Add Q/R flag boolean and change other flags to boolean.
2018-01-09 20:51:50 -05:00
Tom Pusateri
549d46e241
Add test for packet decode of header fields.
2018-01-09 20:51:34 -05:00
Tom Pusateri
b443e9f0cf
for..of won't work in node 0.10, switch to indexing into array.
2018-01-09 20:51:02 -05:00
Tom Pusateri
0a0699cef6
Add rcode conversion tests.
2018-01-09 20:50:51 -05:00
Tom Pusateri
9dad822ee8
Fix return code error and make lint happy.
2018-01-09 20:50:37 -05:00
Tom Pusateri
eabaaa5156
Decode RCODE and other header flags. Fixes #11 .
2018-01-09 20:50:00 -05:00
Tom Pusateri
5aaf0790d9
Finish adding SOA and NS record encoding/decoding. ( #14 )
...
* add ns record and soa record
* npm test with standard
* Complete SOA, NS decoding. Also add encoding and tests.
* updated travis CI tests to stable versions of node.
2018-01-05 18:42:16 +01:00