128 Commits

Author SHA1 Message Date
silverwind
18b8203f1a
update dependencies 2018-07-02 21:51:37 +02:00
silverwind
db4e271a59
fix encoding of empty string in TXT data - fixes #39 2018-07-02 21:50:31 +02:00
silverwind
e29a832aa8
add 5.0.0 changelog 2018-07-02 21:21:14 +02:00
silverwind
d478ebe4ab
refactor and lint examples 2018-07-02 21:19:20 +02:00
silverwind
0f87ff09f5
update devDependencies 2018-06-01 09:42:16 +02:00
silverwind
622b9ea3bb
5.0.0 2018-06-01 09:34:42 +02:00
silverwind
4c00781ed4
drop safe-buffer dependency, bump min node to 6 - fixes #20 2018-06-01 09:33:34 +02:00
silverwind
3c7b50f1ac
readme tweaks 2018-06-01 09:29:18 +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
silverwind
eddb7ab7e4
4.2.0 2018-04-04 17:13:46 +02:00
silverwind
9c1f7b20c0
update dependencies 2018-04-04 17:13:08 +02:00
silverwind
25ae0d23ac
add docs for OPT 2018-04-04 17:12:42 +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
silverwind
40d8e5657f
4.1.1 2018-03-27 22:30:02 +02:00
silverwind
218772acff
update dependencies 2018-03-27 22:26:57 +02:00
silverwind
8db141efa7
add example links to README 2018-03-27 22:25:04 +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
silverwind
1192f944f0
4.1.0 changelog 2018-02-11 11:12:20 +01:00
silverwind
889924d4f4
4.1.0 2018-02-11 11:09:03 +01:00
silverwind
087d59bb63
add MX record type
Fixes: https://github.com/mafintosh/dns-packet/issues/10
2018-02-11 11:07:58 +01:00
silverwind
8000f406c8
4.0.0 2018-02-04 21:12:13 +01:00
silverwind
7274684443
add changelogs for 2.0.0 and 3.0.0, add list lables 2018-02-04 21:10:51 +01:00
silverwind
5689e28e19
update dependencies 2018-02-04 21:07:16 +01:00
silverwind
868e488530
move examples to examples directory, update readme and changelog 2018-02-04 21:06:09 +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
silverwind
44718b2f31
add CHANGELOG.md 2018-01-30 19:47:47 +01:00
silverwind
4cf740bf2f
readme tweak 2018-01-30 19:45:36 +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
140ea5c229
remove standard dependency replaced by eslint-plugin-standard 2018-01-14 12:17:37 +01:00
silverwind
50333108ba
use standard eslint config 2018-01-14 12:11:15 +01:00
silverwind
cdf403f93c
3.0.1 2018-01-14 10:25:25 +01:00
silverwind
6212a2cd8c
add missing classes.js to published files 2018-01-14 10:25:08 +01:00
silverwind
a7fd815e02
3.0.0 2018-01-14 10:17:20 +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
a77e1bbcc7
2.0.0 2018-01-11 21:38:09 +01:00
silverwind
63730f557a
fix ecmaVersion in .eslintrc 2018-01-11 21:36:37 +01:00
silverwind
6606c00fb3
convert to ES2015, tweak package.json 2018-01-11 21:34:58 +01:00
silverwind
d8f93e94fc
drop support for node 0.10 and 0.12
While the module currently technically works on those versions, ESLint does not
which makes the linter fail on those versions.
2018-01-11 21:26:07 +01:00
silverwind
7f35bac5b4
1.3.1 2018-01-11 21:22:40 +01:00
silverwind
3632f188fa
add .eslintrc, fix issues 2018-01-11 21:22:10 +01:00
silverwind
81d4a963bf
Merge pull request #19 from pusateri/eslint
Fix some glaring issues reported by eslint in test.js.
2018-01-11 17:12:17 +01:00
Tom Pusateri
5228547b00 Fix some glaring issues reported by eslint. 2018-01-10 22:54:36 -05:00
silverwind
8282bf4c3e
Add docs for NS and SOA rrtypes 2018-01-10 19:53:04 +01:00
silverwind
0d8bb78efd
1.3.0 2018-01-10 19:43:49 +01:00
Tom Pusateri
2e59f463e2
Fix encode/decode for root name ('.'). Add tests. Fixes #13. 2018-01-10 19:42:09 +01:00
silverwind
424f9e8809
Merge pull request #17 from pusateri/rcode
Add support for RCODE and other header flag decoding.
2018-01-10 19:34:15 +01:00