Commit Graph

348 Commits

Author SHA1 Message Date
Benjamin Fry
d04a41b1fa make past and future checks on check no-default-features 2021-12-11 12:03:53 -08:00
Peter Johnston
a8842545fc Do not retry the same name server on a negative response 2021-11-23 18:26:50 -08:00
Emīls
efcd907839 Remove unused field on NameServerPool 2021-11-04 13:03:49 -07:00
Benjamin Fry
773963288a fix formatting of server_future_tests.rs 2021-10-30 10:18:32 -07:00
Dirkjan Ochtman
57d0c8c0fb Update to rustls 0.20 2021-10-30 10:18:32 -07:00
Benjamin Fry
fa59fe50ab prefer std::time::Duration 2021-10-27 21:02:46 -07:00
Benjamin Fry
7b2e1eb235 Remove Chrono dependency 2021-10-27 21:02:46 -07:00
Benjamin Fry
63fdb84333 prepare 0.21.0.alpha.4 2021-10-13 16:08:14 -07:00
dependabot[bot]
f9afed813c Bump rusqlite from 0.25.3 to 0.26.0
Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.25.3 to 0.26.0.
- [Release notes](https://github.com/rusqlite/rusqlite/releases)
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.25.3...v0.26.0)

---
updated-dependencies:
- dependency-name: rusqlite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 16:01:59 +02:00
Peter Johnston
aefb6deded Default to only switch to TCP if response was truncated
Currently, if queries to name servers over UDP result in either a
truncated response, or any kind of error, the query will be retried over
TCP. It should be possible to only use TCP for the case of oversized
messages, and avoid it in the common case. This change makes this the
default behavior and adds an option to ResolverOpts that can be enabled
to get the current behavior.
2021-10-08 09:46:55 -07:00
Benjamin Fry
cb73fd9cc9 pass Request by reference to RequestHandler 2021-10-07 12:24:03 -07:00
Benjamin Fry
c500ca2639 fix SyncClient::send and add FormErr test 2021-10-07 12:24:03 -07:00
Benjamin Fry
b62d2382e0 cleanup request handling by enforcing single query during parsing 2021-10-07 12:24:03 -07:00
Benjamin Fry
fc3eafd100 simplify request handling by verifying query form 2021-10-07 12:24:03 -07:00
Benjamin Fry
1ab4baf044 cleanup use statements 2021-10-07 12:24:03 -07:00
Benjamin Fry
af7b3dfe7e update cangelog for server request logging 2021-10-07 12:24:03 -07:00
Benjamin Fry
d9dcd8bfb0 Simplify server logging to single logline per request 2021-10-07 12:24:03 -07:00
Benjamin Fry
837f65057e prepare 0.21.0-alpha.3 2021-09-28 08:47:26 -07:00
Peter Johnston
227105a797 Correct behavior around trust_nx_responses
In 1b524afd86a7ba273d23efa393dc4e68c446d8e9, which moved the
`trust_nx_responses` setting from a configuration on the resolver to a
configuration at the name server level, the option was also renamed from
`distrust_nx_responses`. There were some places in the codebase where
the corresponding boolean value was not also flipped, unintentionally
changing the semantics. This has led to some confusing behavior. For
example, in the `test_trust_nx_responses_fails_servfail` test, where
`distrust_nx_responses` was previously set to `false`,
`trust_nx_responses` was left as `false` in the change, where it should
have been changed to `true`.

This change fixes a bug where retry behavior doesn't occur unless
`trust_nx_responses` is set to `true` (due to an error response not
being considered a `ResolveError`), and reworks the tests to accurately
test the current behavior. It also consolidates the
`test_distrust_nx_responses` and `test_retry_on_error_response` tests
into one test, as they exercised the same functionality.
2021-09-23 10:12:02 +02:00
Benjamin Fry
f7465c9917 require Authority to have interior mutability 2021-09-20 12:05:58 -07:00
Benjamin Fry
b8ad0d68ca Move to async-trait for server to simplify function calls 2021-09-20 12:05:58 -07:00
Benjamin Fry
909d5b7a6c update certs for tests 08-2021 2021-09-13 19:14:46 -07:00
Benjamin Fry
057735a1dc prepare 0.21.0-alpha.2 2021-08-29 17:20:38 -07:00
Benjamin Fry
217e1d579e tests for non-authoritative answers 2021-08-22 10:30:31 -07:00
Benjamin Fry
aebc682dfa stop returning NS records on authoritative response 2021-08-22 10:30:31 -07:00
Peter Johnston
f08860cf8c return error response from highest priority name server 2021-08-04 15:33:37 -07:00
Peter Johnston
1e662930d5 retry on all DNS error response codes 2021-08-04 15:33:37 -07:00
Benjamin Fry
236f98bdc4 remove unnecessary borrows 2021-08-02 10:34:53 +02:00
dependabot[bot]
705524af26 Bump env_logger from 0.8.3 to 0.9.0
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.8.3 to 0.9.0.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.3...v0.9.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 16:14:24 +02:00
Peter Johnston
0d27876b6d add integration test 2021-07-04 11:17:51 -07:00
Benjamin Fry
d9424717ee introduce DnssecAuthority to allow disabling of dnssec in authority 2021-06-30 06:55:11 -07:00
Benjamin Fry
0cc7874201 move all DNSSECRecordType variants into RecordType 2021-06-30 06:55:11 -07:00
Benjamin Fry
59d6343862 move all DNSSECRecordType variants into RecordType 2021-06-30 06:55:11 -07:00
Benjamin Fry
8eca711b9a add cleanliness target and better clippy coverage 2021-06-30 11:25:33 +02:00
Benjamin Fry
57b131f7dc fix clippy warnings for Rust 1.53 2021-06-19 07:51:09 +02:00
Benjamin Fry
eb46623d30 remove all deprecated usages of Signer for SigSigner 2021-05-30 14:57:51 -07:00
Benjamin Fry
b01c52760b rename Signer to SigSigner to differentiate from TSigner 2021-05-30 14:57:51 -07:00
Benjamin Fry
f025b16b45 move TSIG into DNSSEC to allow for slimmer dependencies 2021-05-30 14:57:51 -07:00
Trinity Pointard
1ce2311aa3 fix following review 2021-05-26 12:24:33 -07:00
Trinity Pointard
a14b07b382 add test for tsigned zone transfer
and fix errors it uncovere
2021-05-26 12:24:33 -07:00
Trinity Pointard
13c4c78685 fix zone transfer test 2021-05-26 12:24:33 -07:00
Trinity Pointard
5aa672f4fc try to add tsig test against bind 2021-05-26 12:24:33 -07:00
Trinity Pointard
5a2982e206 add tests and doc-comments
also implement signature verification in proto
answers are not automatically verified however
2021-05-26 12:24:33 -07:00
Trinity Pointard
5bcee8b817 fix https and mdns clients and tests 2021-05-26 12:24:33 -07:00
Trinity Pointard
adb057a4bd Add support for TSIG to client
/!\ Contains breaking changes, some prototypes were changed from a Sig0 Signer to an enum type containing either Sig0 or TSIG signer
Changes were tested against KnotDns, however unit/integration tests are still missing
The client does not authenticate server answer as it should per RFC8945 5.3.1.
Could use more comments
2021-05-26 12:24:33 -07:00
dependabot-preview[bot]
4a27c8d9af Bump rusqlite from 0.24.2 to 0.25.3
Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.24.2 to 0.25.3.
- [Release notes](https://github.com/rusqlite/rusqlite/releases)
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.24.2...v0.25.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-22 11:31:59 -07:00
Benjamin Fry
00f1bc0aeb setup versions for 0.21.0-alpha.1 2021-05-22 10:34:53 -07:00
Benjamin Fry
65846ee1c7 Prepare 0.20.3 with Windows build fix 2021-05-22 10:34:53 -07:00
Trinity Pointard
5cb10a0131 fix clippy 2021-05-22 10:25:49 -07:00
Trinity Pointard
280ed30f1a re-add IXFR test 2021-05-22 10:25:49 -07:00
Trinity Pointard
04c887292a reintroduce incremential zone transfer on zone_transfer 2021-05-22 10:25:49 -07:00
Trinity Pointard
e4cfdf52f6 fix typos and add some documentation 2021-05-22 10:25:49 -07:00
Trinity Pointard
4758d939a9 don't run bind test out of compatibility job 2021-05-22 10:25:49 -07:00
Trinity Pointard
83b8f457c2 remove ixfr from zone_transfert
ixfr should have a specific method, probably returning two sets of
records, thoses deleted since, and those added
2021-05-22 10:25:49 -07:00
Trinity Pointard
32932789f3 add test against bind for zone transfert
I realize IXFR does not work how I immagined, zone_transfert()
should get more documentation about how it works, or it should be a
different function, with a different prototype, returning the already
processed response
2021-05-22 10:25:49 -07:00
Trinity Pointard
db1add72ba fix minimum version and import on wrong feature flag 2021-05-22 10:25:49 -07:00
Trinity Pointard
b4bf726e79 remove multi_answer flag
it was annoying and not very useful
2021-05-22 10:25:49 -07:00
Trinity Pointard
7727c184a1 minor changes
use constant for buffer size
return Vec<Result> instead of Result<Vec> on Client::send so a mix of
error and success does not discard successes
2021-05-22 10:25:49 -07:00
Trinity Pointard
ad16184fdb add support for stream using mpsc for tcp multiplexer
and add a bool flag to DnsHandle::send to tell when multiple answers are
expected
It's used only as an optimisation to close the Stream after first answer
instead of waiting for a timeout
2021-05-22 10:25:49 -07:00
Trinity Pointard
84f1947f7a implement usage of future in resolver and integration test
and create an helper trait to convert a Stream to a Future, helping a
lot with situations where only one answer is expected
2021-05-22 10:25:49 -07:00
Benjamin Fry
9e857d081e fix tls in server_future_tests 2021-04-26 12:16:02 -07:00
Benjamin Fry
ca1ba2150b move openssl into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
332c378a65 move https impls into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
4e5655d6de move rustls crate into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
39932daa03 remove unnecessary BufStreamHandle 2021-04-09 21:57:43 -07:00
Benjamin Fry
4e30b1b1c9 disable mDNS, remove multi-return array 2021-04-09 21:57:43 -07:00
Benjamin Fry
3f270a0aae mark ResolverOpts and DnsRequestOptions as non_exhaustive 2021-04-06 10:29:16 +02:00
Evan Cameron
f483926b06 client: use DnsHandle::send 2021-04-03 11:57:48 -07:00
Evan Cameron
8e20534278 client: add send(Message) to Client 2021-04-03 11:57:48 -07:00
Evan Cameron
312c139c7d client: add query_edns to proto client 2021-04-03 11:57:48 -07:00
Benjamin Fry
a1c91f1746 prepare 0.20.1 release 2021-03-15 19:08:28 -07:00
Benjamin Fry
7a4b3b55c3
fix clippy warnings for rustc 1.50 2021-02-17 23:19:59 -08:00
Harry Cheng
26b842b7e9
Enable RuntimeProvider in DoT implementations (#1373) 2021-02-03 20:26:39 +01:00
Dirkjan Ochtman
af78267d5e Apply suggestions from clippy 1.49 2021-01-01 09:22:54 -08:00
Benjamin Fry
140881b0e6 prepare 0.20.0 release 2020-12-29 09:43:28 +01:00
dependabot-preview[bot]
540906be77 Bump rand from 0.7.3 to 0.8.0
Bumps [rand](https://github.com/rust-random/rand) from 0.7.3 to 0.8.0.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.7.3...0.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-27 16:50:01 -08:00
messense
f797a11f74 Upgrade to tokio v1.0 2020-12-27 14:59:11 -08:00
Dirkjan Ochtman
9a1c71c631 Test for the correct address, sent in a separate message 2020-12-09 08:44:47 -08:00
Dirkjan Ochtman
f7f7297b33 Push Arc<RwLock<>> into AuthorityObject impl 2020-12-09 08:44:47 -08:00
Benjamin Fry
a44e3f3e60 upgrade rustls to 0.19 and tokio-rustls to 0.21 2020-11-28 20:38:00 -08:00
Benjamin Fry
a516f38b61 fix clippy warnings 2020-11-28 20:38:00 -08:00
Benjamin Fry
2a42fa6966 upgrade integration tests to Tokio 0.3 2020-11-28 20:38:00 -08:00
Benjamin Fry
30f2b44986 upgrade proto crate to Tokio 0.3 2020-11-28 20:38:00 -08:00
Benjamin Fry
8056cb0d83 clippy updates for rust 1.48 2020-11-24 14:54:07 -08:00
ty
7a194c864f
Set serde default and alias for Protocol and NameServerConfig (#1284)
* Set serde default and field rename for Protocol and NameServerConfig (fixes #1282)
2020-11-18 20:39:06 +01:00
Dirkjan Ochtman
7895de879f server: make server error handling more consistent (fixes #1266) 2020-10-27 08:16:49 -07:00
Benjamin Fry
1b8f865066 Prepare 0.20.0-alpha.3 2020-10-24 20:03:22 -07:00
dependabot-preview[bot]
9dd89949a9 Bump env_logger from 0.7.1 to 0.8.1
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.7.1 to 0.8.1.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-19 20:15:09 +02:00
Dirkjan Ochtman
578d268f70 attach associated type Time to DnsClientStream trait 2020-10-16 13:24:45 -07:00
Dirkjan Ochtman
ab46adcc09 associate Time type with Connect trait 2020-10-16 13:24:45 -07:00
Dirkjan Ochtman
587273247e resolver: rename lookup_state to caching_client 2020-10-16 01:53:05 -07:00
Dirkjan Ochtman
94fa917c74 remove non-macro-use extern crate imports 2020-10-13 07:58:06 -07:00
Dirkjan Ochtman
1c0688ce20 adopt 2018 edition idioms 2020-10-13 07:58:06 -07:00
Dirkjan Ochtman
9639e15aee resolver: retry busy servers with exponential backoff 2020-10-12 23:16:18 +02:00
Dirkjan Ochtman
545330ac8a tests: set up independent name servers for concurrent requests tests
MockClientHandle stores its responses in an Arc<_>, such that a cloned mock
server shares underlying storage of the messages with the original. This
seems unintentional and makes the tests potentially hang, so use different
name servers explicitly, where one does not have any responses at all.
2020-10-12 23:16:18 +02:00
Dirkjan Ochtman
98cbe9a2e0 make BufStreamHandle channels bounded 2020-10-12 23:16:18 +02:00
Dirkjan Ochtman
0c431a8f52 rename unbounded_send() method to send() 2020-10-12 23:16:18 +02:00
Dirkjan Ochtman
4a5f375a10 explicitly name mpsc and oneshot types 2020-10-12 23:16:18 +02:00
Dirkjan Ochtman
756749bd9e avoid unwrap() for functions that don't error 2020-10-05 09:31:30 -07:00
Dirkjan Ochtman
3ba3937f2d remove response future type parameter where possible 2020-10-01 08:07:54 -07:00
Dirkjan Ochtman
183526ef66 move NX trust bit from ResolverOpts to NameServerConfig 2020-09-25 19:04:22 -07:00
Benjamin Fry
4af665e089 update version for 0.20.0-alpha.2 2020-09-16 16:15:10 -07:00
Benjamin Fry
b1b19e51cd update Rusqlite and remove externs 2020-09-16 16:15:10 -07:00
Benjamin Fry
248fd8709b make errors generic in DnsHandle for Resolver 2020-09-15 15:27:44 -07:00
Benjamin Fry
2f57f00ba5 update test certificates for TLS 2020-09-13 15:10:38 -07:00
Benjamin Fry
b57b2343f0 bump trust-dns-versions to 0.20.0-alpha.1 2020-08-16 17:58:21 -07:00
Benjamin Fry
5c49fdde0e update rustls to 0.18 and tokio-rustls to 0.14 2020-08-08 17:29:29 -07:00
dependabot-preview[bot]
72aab256f1 Bump tokio from 0.2.21 to 0.2.22
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.21 to 0.2.22.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.21...tokio-0.2.22)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-08 14:07:51 -07:00
Benjamin Fry
e70a5fa85d
update code for rust 1.45 (#1166)
* update code for rust 1.45

* ignore UDP dnssec tests by default
2020-07-19 11:23:18 -07:00
dependabot-preview[bot]
80670484d3 Bump webpki-roots from 0.19.0 to 0.20.0
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.19.0...v/0.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-23 16:07:57 -07:00
Benjamin Fry
2710b9f4f4
Fully support *ring* for all DNSSEC operations. (#1145)
* add more debug information to DNSSEC validation

* update ring validation to allow 1024bit keys for all Algorithm types

* disable dnssec tests in std builds

* ensure TrustAnchor is constructed properly in DnsSecSyncClient

* add key length to DNSKEY display
2020-06-23 10:46:22 -07:00
Benjamin Fry
303f007316
No more master slave, in honor of Juneteenth (#1141)
* in honor of Juneteenth, remove replace Master with Primary

* in honor of Juneteenth, remove replace Slave with Secondary

* add 8499 for reference about naming

* clean up deprecation warnings

* remove unsupported markdown strikethroughs...

* revert primary to master in BIND compatibility tests
2020-06-20 12:59:47 -07:00
Benjamin Fry
16f4e862ef rename all references to branch master to main 2020-06-19 11:12:06 -07:00
dependabot-preview[bot]
d2fcef8a11 Bump futures from 0.3.4 to 0.3.5
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.4...0.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 11:00:19 -07:00
Benjamin Fry
aa315c13b9 bump versions to 0.20 and update Changelog 2020-05-04 15:37:35 -07:00
Johnny Bergström
2502c58c14
use RuntimeProvider in https (#1077)
* logger: missing https crate

* https: use RuntimeProvider when making connections

- [X] use RuntimeProvider when making TCP connections
- [ ] use RuntimeProvider when making TLS upgrades
- [ ] migrate tests

* RuntimeProvider::Tcp: remove async read/write

The TCP needs to Connect, the async readwriter will be in the
transport of connect. Thus we don't need it to be a requirement
on the top trait of RuntimeProvider

* AsyncResolver: remove async from new()

Related to overriding RuntimeProvider for #1074

Solves #1056

* cleanup tests

* rebase master for 0.19.5

* fix windows tests

Co-authored-by: Benjamin Fry <benjaminfry@me.com>
2020-05-02 11:18:50 -07:00
Benjamin Fry
e4f736f341
Lucio franco lucio/fix server handle (#1088)
* Fix server to use runtime handle internally

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* fix extra features

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* fix tests

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* bump checkout action to v2

* fix OpenSSL build

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-30 12:16:18 -07:00
Benjamin Fry
30e0f302a0 bump version to 0.19.5 2020-04-27 11:58:09 -07:00
Benjamin Fry
5767c13a38 April version updates 2020-04-27 11:58:09 -07:00
dependabot-preview[bot]
a472d81f24 Bump rusqlite from 0.21.0 to 0.22.0
Bumps [rusqlite](https://github.com/jgallagher/rusqlite) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/jgallagher/rusqlite/releases)
- [Changelog](https://github.com/jgallagher/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/jgallagher/rusqlite/compare/0.21.0...0.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-24 10:47:53 -07:00
Benjamin Fry
49a88d769d bump versions to 0.19.4, update Changelog 2020-04-11 17:06:22 -07:00
dependabot-preview[bot]
67c1f573a2 Bump tokio from 0.2.13 to 0.2.16
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.13 to 0.2.16.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.13...tokio-0.2.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-07 14:08:34 -07:00
Oleksii Kachaiev
77fd933d53
Support $INCLUDE for master files (#1027)
* Add $INCLUDE, make sure that tests fail now

* Update FileAuthority test to try to find subdomain mentioned in INCLUDE-d file

* Quick but working implementation, a lot of TODOs

* File reader to rely on Lexer to detect INCLUDE instead of manual processing

* Parser to notify about expectation for INCLUDE to be inlined *before* parsing

* Differentiate absolute file path and relative file path when performing INCLUDE

* Add comment about INCLUDE with custom origin

* Extend logging for included files

* Track recursion depth and about in case of overlimit

* Block loading the same file more than once to deal with cycles

* Improve code for depth tracking

* Remove unnecessary comments from tests

* Fail $INCLUDE when custom relative domain is specified

Co-authored-by: Benjamin Fry <benjaminfry@me.com>
2020-03-09 15:06:31 -07:00
Benjamin Fry
a2bba3fee0 upgrade rustlts to 0.17 and tokio-rustls to 0.12 2020-02-28 02:25:20 -08:00
Benjamin Fry
e137e72f34
Balboah fix/missing cname records (#1033)
* Allow CNAME records on A/AAAA lookups

Fixes #184

* rustfmt

* Fix cname chain min TTL test

The test assumed that the CNAME record wouldn't be returned.
Now we only check that the A record TTLs were changed

* Fix lookup integration tests & max query depth

- include cname record in test
- move max query depth check

* add preserve_intermediates option

* preserve records across queries

* add as_lookup to LookupIp

Co-authored-by: Johnny Bergström <github@joonix.se>
2020-02-27 17:42:19 -08:00
dependabot-preview[bot]
c6a2a657ff Bump data-encoding from 2.1.2 to 2.2.0
Bumps [data-encoding](https://github.com/ia0/data-encoding) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/ia0/data-encoding/releases)
- [Commits](https://github.com/ia0/data-encoding/compare/v2.1.2...v2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-25 10:20:59 -08:00
Benjamin Fry
e7d4166162 Prepare 0.19.3 release 2020-02-15 12:47:35 -08:00
dependabot-preview[bot]
21bfd01653 Bump tokio from 0.2.9 to 0.2.11
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.9 to 0.2.11.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.9...tokio-0.2.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 16:08:45 -08:00
dependabot-preview[bot]
66c36e7348 Bump webpki-roots from 0.18.0 to 0.19.0
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.18.0...v/0.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 16:00:54 -08:00
dependabot-preview[bot]
9470ee1413 Bump futures from 0.3.1 to 0.3.4
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.1 to 0.3.4.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.1...0.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 15:59:45 -08:00
Benjamin Fry
eb077cfb68 bump version to 0.19.2 2020-01-16 20:00:06 -08:00
Benjamin Fry
2316acd253 bump version to 0.19.1 2020-01-16 08:55:47 -08:00
Benjamin Fry
eeb27a822c prepare 0.19 release 2020-01-14 11:08:27 -08:00
Benjamin Fry
c10c3a589e remove failure dependency 2020-01-11 20:52:42 -08:00
Benjamin Fry
47ce53bf5d Bump versions to 0.18.1 2020-01-04 18:52:59 -08:00
Benjamin Fry
ab19368ef1 reproduce error stack overflow from . as MX target
stop additional lookup on Root name
2020-01-04 13:42:56 -08:00
Benjamin Fry
4661220c52 rename SecureClient et al to Dnssec (more accurate) 2019-12-22 13:32:10 -08:00
Benjamin Fry
9918f937f0 update version to 0.18 2019-12-22 13:32:10 -08:00
Benjamin Fry
d5cd859626 allow any 0.4 version of log 2019-12-19 13:11:39 -08:00
chunyingw
93cf1db18b Abstract tokio (#960)
* [trust-dns-proto] Make tokio* optional

1. Move from tokio::io::{AsyncRead, AsyncWrite} to
futures::io::{AsyncRead, AsyncWrite} and provide a helper struct
Compat02As03 for the conversion.
2. Abstract tokio::time::{Delay, Timeout}.
3. Modify the other crates which are impacted by the above two changes.

* [trust-dns-proto] make fn asyn for Time trait

* [trust-dns-proto] collapse features

Collapse the features tokio-io, tokio-time into tokio-time.
2019-12-19 08:42:43 -08:00
dependabot-preview[bot]
1c8a0570ee Bump rusqlite from 0.20.0 to 0.21.0
Bumps [rusqlite](https://github.com/jgallagher/rusqlite) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/jgallagher/rusqlite/releases)
- [Changelog](https://github.com/jgallagher/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/jgallagher/rusqlite/compare/0.20.0...0.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 16:59:59 -08:00
dependabot-preview[bot]
ba68b22f42 Bump log from 0.4.8 to 0.4.10
Bumps [log](https://github.com/rust-lang/log) from 0.4.8 to 0.4.10.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.8...0.4.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 13:04:00 -08:00
Benjamin Fry
a4fc571070 only cache deps 2019-12-15 23:23:34 -08:00
Benjamin Fry
c877d7611d cleanup paths for coverage script run 2019-12-15 14:02:29 -08:00
Benjamin Fry
c854ca5ab2 cleanup paths for coverage script run 2019-12-15 14:02:29 -08:00
Benjamin Fry
f1bd65e9ea remove travis references 2019-12-15 14:02:29 -08:00
Benjamin Fry
4e91786388 get ready to publish 0.18.0-alpha.3 2019-12-14 17:10:35 -08:00
Benjamin Fry
145356d3f8 Get compatibility tests working in cargo-make and github 2019-12-14 15:02:10 -08:00
Benjamin Fry
224bde6561
Background with generic spawn (#935)
* all tests updated for new background

* background in Resolver now supported, wip

* clean up client impls

* client passing all tests

* cleanup review comments, remove try_locks

* remove mutexes on NameServers in NameServerPool

* refactored ConnectionProvider

* remove pinutils dependency

* remove the now unused custom *LookupFutures

* remove unused types

* remove all deprecated interfaces from Client

* rename ClientFuture to AsyncClient

* all clippy warnings and SecureClient working

* cleanup clippy warnnings

* Everything working with Background removed

* fix infinite loop

* Client refactored without background

* rebased onto tokio 0.2

* remove Clone and Option from background connects

* cleanup from review

* fix clippy warnings

* spawn in ConnectionProvider

* fix no-default-features test

* only expose testing functions during testing

* fix copyright typo

* revert lookup_ip interface change

* limit tokio features to least required set

* rename tokio-compat to tokio-runtime

* use async fns where possible on AsyncResolver

* fix lifetime issue
2019-12-11 17:43:02 -08:00
Benjamin Fry
cd7ffa5885
prepare 0.18-alpha.2 (#945)
* prepare 0.18-alpha.2

* sleep between publishes to let crates.io catch up
2019-12-06 08:47:09 -08:00