27 Commits

Author SHA1 Message Date
Nick Johnson
8a6764b2b3 Remove accidental or in typebitmap.encodingLength (#41) 2018-09-05 18:52:59 +02:00
silverwind
db4e271a59
fix encoding of empty string in TXT data - fixes #39 2018-07-02 21:50:31 +02:00
silverwind
4c00781ed4
drop safe-buffer dependency, bump min node to 6 - fixes #20 2018-06-01 09:33:34 +02:00
Nick Johnson
4e540801ab Add support for DNSSEC types from RFC4034 (#38)
* Add support for DNSSEC types from RFC4034

* Fix bug with wrong signature length decoded

* Sort RRTypes in the Readme, and add new ones

* Add support for nsec3
2018-06-01 09:25:07 +02:00
Joe Hildebrand
f6db3d3d5f Add basic EDNS(0) OPT RR support
* Add EDNS(0) OPT RR for UDP payload size in query.

* Rework PR #34, fixes #36.  Add support for options in an OPT pseudo-RR.

* Include tweaks from @silverwind
2018-04-04 17:07:11 +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
silverwind
087d59bb63
add MX record type
Fixes: https://github.com/mafintosh/dns-packet/issues/10
2018-02-11 11:07:58 +01: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
Richard Schneider
600d4acd90 fix: flush and class (#28) 2018-02-04 18:59:47 +00:00
silverwind
84589e7026
rename flag_auth,flag_trunc to flag_aa,flag_tc
Fixes: https://github.com/mafintosh/dns-packet/issues/27
2018-01-30 19:50:17 +01:00
Richard Schneider
d58cdb3419 Change TXT values to array of buffers (breaking) (#26)
* fix: txt data is an array of strings

* fix: a consistent API for TXT data

* docs: update TXT info

* feat: empty buffer is not allowed

* fix: allow empty strings and buffers

* fix: rnull is like old rtxt
2018-01-30 19:41:18 +01:00
silverwind
3b76b23221
Change class option to take strings and document it (#4)
This changes to class option to take strings instead of integers, so 1
becomes 'IN', 3 becomes 'CH' and so on. Also documented the class
option.
2018-01-12 21:20:38 +01:00
silverwind
6606c00fb3
convert to ES2015, tweak package.json 2018-01-11 21:34:58 +01:00
silverwind
3632f188fa
add .eslintrc, fix issues 2018-01-11 21:22:10 +01: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
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
silverwind
a69aaa1023
add additional CAA tests 2017-08-12 18:25:10 +02:00
kyleaedwards
c1e94b5d69
support CAA records 2017-08-12 18:25:09 +02:00
silverwind
b2f320b83d use new Buffer APIs (#1) 2016-11-11 13:21:27 +09:00
Mathias Buus
1d241f5f97 support bit flags 2016-02-22 17:37:12 -08:00
Mathias Buus
e2643b0312 first commit 2016-02-18 12:48:08 -08:00