468 Commits

Author SHA1 Message Date
situ2001
eb79382a36 fix: update ip of example.com 2024-04-20 13:08:29 -07:00
David Lönnhager
d2e64d8d26 Break when socket is unexpectedly shut down 2024-03-16 13:21:54 -04:00
Hoe Hao Cheng
f382e96a90 Forward hickory-dns's root cert features to hickory-resolver 2024-03-04 14:39:29 +01:00
Benjamin Fry
de0b4605b5 simplify async proof validation and reduce clones 2024-03-02 11:43:52 -05:00
Benjamin Fry
46d30cbec8 cleanup some of the clones of records on verification 2024-03-02 11:43:52 -05:00
Benjamin Fry
e2c82f6991 change internal usage from set_rr_type to set_record_type 2024-03-02 11:43:52 -05:00
Benjamin Fry
c0c2b2fa89 make dnssec methods more type safe 2024-03-02 11:43:52 -05:00
Benjamin Fry
8154de2b89 fix cleanliness for 1.76 2024-02-11 12:41:03 -05:00
Benjamin Fry
aed9dcfb20 change AccessControl denied addresses to not parse the DNS packet 2024-02-06 11:23:12 -05:00
Benjamin Fry
f1b4207154 return boolean in AccessControl rather than Result 2024-02-06 11:23:12 -05:00
Benjamin Fry
414abf7087 remove single add access control methods, only allow slice 2024-02-06 11:23:12 -05:00
Benjamin Fry
27925a8ce7 cleanup evaluation of access lists 2024-02-06 11:23:12 -05:00
Benjamin Fry
91e5065213 renamce Access to AccessControl 2024-02-06 11:23:12 -05:00
Benjamin Fry
456a306f3a fix typos in Access usage 2024-02-06 11:23:12 -05:00
Benjamin Fry
10d607b8a6 use get_or_insert_with to clean up code 2024-02-06 11:23:12 -05:00
Benjamin Fry
d6a927aba8 add deny networks config option and examples 2024-02-06 11:23:12 -05:00
Benjamin Fry
09bd66ec3c add deny networks to access 2024-02-06 11:23:12 -05:00
Benjamin Fry
f141667a0b add config option for allow_networks 2024-02-06 11:23:12 -05:00
Benjamin Fry
4f4f3172bf wire up Access to check request IP addr before servicing the IP 2024-02-06 11:23:12 -05:00
Benjamin Fry
4b6c7022c4 add access check for IP networks 2024-02-06 11:23:12 -05:00
Benjamin Fry
4d292515a6 properly extract both IPv6 and IPv4 addresses for named tests 2024-01-04 23:28:12 -05:00
Marcus Butler
0d965da4b1 Formatting issues 2024-01-01 16:57:39 -05:00
Marcus Butler
b414fe8d78 Recursor: make nameserver and record cache sizes configurable 2024-01-01 16:57:39 -05:00
Marcus Butler
a79fd0df8e Change self.records.get(0) to self.records.first() in message_request.rs and rr_set.rs 2024-01-01 13:27:25 -05:00
Benjamin Fry
408d0baca0 Prepare 0.24 release with branding change to Hickory DNS (#2054)
* update all READMEs with notices about the name change

* update changelog for 0.24

* bump crate versions to 0.24

* update version notice information

* update readmes to back reference trust-dns

* rename all crates to hickory counterparts

* replace all Trust-DNS references in code and comments with Hickory DNS

* rename all Trust-DNS references to Hickory DNS in non-code

* rename all trust-dns-resolver references to hickory-resolver

* rename all trust-dns-client references to hickory-client

* rename all trust-dns-proto references to hickory-proto

* rename all trust-dns-server references to hickory-server

* rename all trust-dns-compatibility references to hickory-compatability

* rename all trust-dns-integration references to hickory-integration

* rename all trust-dns-util references to hickory-util

* Update MIT licenses to reference Hickory DNS

* update all trust-dns references to hickory-dns

* update all bluejekyll github references to hickorydns org

* Update name in Changelog

* make sure hickory-dns logs during tests

* add changelogs for recent main additions

* fix references to trust-dns and hickory in architecture

* update a few trust-dns references in READMEs

* fixup some dangling trust_dns references

* replace fka with formerly in change log

* replace all hickoydns org references to hickory-dns

* replace all http links with https

* update logos

* update hickorydns to hickory-dns for all other org references

* fix Notices of Trust-DNS to Hickory in each Readme
2023-10-13 18:39:28 -07:00
Benjamin Fry
dac1009503 remove notices of move to Hickory since this is already Hickory. 2023-10-13 19:26:06 -04:00
Benjamin Fry
65c5327ef6 Prepare 0.23.1 (#2056)
* update versions to 0.23.1

* update readmes for forward reference to 0.24 and Hickory DNS
2023-10-13 19:26:06 -04:00
Benjamin Fry
c9a2ce42cb cleanliness updates for rustc 1.73 2023-10-06 14:57:10 -07:00
daxpedda
a846914b11 Parallelize concurrent requests 2023-10-06 09:12:32 -07:00
daxpedda
f10faa3516 Rename HTTPS implementation to H2 2023-10-06 09:12:32 -07:00
daxpedda
ebb098de38 Remove incorrect warning in HTTP/3 stream handling 2023-10-06 09:12:32 -07:00
daxpedda
52194bf88c Remove unnecessary whitespace 2023-10-06 09:12:32 -07:00
daxpedda
f52ff659b2 Server implementation 2023-10-06 09:12:32 -07:00
dAxpeDDa
e34770c113 Proto client implementation 2023-10-06 09:12:32 -07:00
小明
7c78e740ef Optimized shutdown_gracefully() (#2041) 2023-10-05 10:00:11 +02:00
Dirkjan Ochtman
ee530bf749 proto: make the lexer an implementation detail of the parser 2023-09-29 09:41:01 -07:00
Dirkjan Ochtman
77e06525c1 proto: handle includes in the parser 2023-09-29 09:41:01 -07:00
Dirkjan Ochtman
4b334aee36 proto: store state in Parser 2023-09-29 09:41:01 -07:00
Dirkjan Ochtman
fa879e1810 proto: make sure a Parser is used only once 2023-09-29 09:41:01 -07:00
Yaroslav Rosomakho
615c5b4eae Spawn data processing in a separate tokio task to avoid deadlock if the Data frame is not yet received. 2023-09-26 13:30:15 -07:00
Dirkjan Ochtman
871e1d4639 Bump MSRV to 1.67 (for time) 2023-09-26 08:28:39 -07:00
Dirkjan Ochtman
72d398eea6 server: switch to basic-toml 2023-09-26 08:28:39 -07:00
Dirkjan Ochtman
10d2ffcb04 Clean up unused dependencies 2023-09-26 08:28:39 -07:00
Dirkjan Ochtman
2e1c67c2f5 server: make TOML dependency optional 2023-09-26 08:28:39 -07:00
Dirkjan Ochtman
5ba8afaf5f server: simplify Config TOML API 2023-09-26 08:28:39 -07:00
daxpedda
cf26eb52db Remove Copy from ResolverOpts 2023-09-19 16:31:33 -07:00
Logan Praneis
64280f475e fix: Prevent task reaping from blocking
Previously, the `reap_tasks` function could cause a tokio task to spinloop, preventing it from being cancelled.

This is because `FutureExt::now_or_never` returns an Option<T> where T is the inner future's resolution type.
If `join_set.join_next()` returned None, indicating there are no longer tasks to join, the `FutureExt::now_or_never` would return `Some(None)`.

However, the `is_some()` spinloop in this function would see the `Some(None)` and busy loop calling `FutureExt::now_or_never`.
This causes the tokio task to fail to be cancelled properly as it never yields to the executor.

The fix here is to use `Option::flatten` to transform the nested Option.
Now, the call to `reap_tasks` will only loop when the inner `join_set.join_next` returns `Some(..)`, indicating that a task is already complete.
When there are no tasks complete, or when the `JoinSet` is empty and returns `None`, the `reap_tasks` function will immediately yield.
2023-09-15 12:29:25 +02:00
daxpedda
8e38497142 Fix CI 2023-08-31 14:26:39 -07:00
yaotthaha
06fdd603a7 server: fix rustls server config error 2023-08-31 10:10:48 -07:00
yaotthaha
47e8a78dc0 server: add register with rustls server config 2023-08-31 10:10:48 -07:00