Commit Graph

209 Commits

Author SHA1 Message Date
Dirkjan Ochtman
c505f84db8 Apply clippy suggestions for Rust 1.79 2024-06-14 16:45:26 -07:00
Jorge Aparicio
ed192864f3 refactor the Resource data structure
the `rr_type` field has been removed. this eliminates the possibility of
setting `rdata` to a type that does not match `rr_type`. as a
consequence, the `set_record_type` has also been removed

the `record_type` of the `Resource` is now derived from what's stored in
the `rdata` field

`rdata` is no longer an `Option`. `rdata = None` was being used to
represent update records. an `Update` variant has been added to the
`RData` enum. this variant is used to represent update records, which
have RDLENGTH set to 0.

the `Resource::{default,new}` constructors have been removed. they felt
error prone as in most cases one wants to set the `rdata` and `name`
fields since they have no sensible defaults. all uses of those
constructors now use the pre-existing `from_rdata` constructor

the `Resource::with` constructor has also been removed. it was pretty
similar to `from_rdata` but initialized `rr_type` and not `rdata`. all
uses of `Record::with` has been changed to `from_rdata`
2024-06-10 20:00:48 -07:00
Dirkjan Ochtman
cde6f908c2 Remove broken mtls code 2024-05-21 10:24:01 -07:00
Diva M
3799e13f7b fix copy-pasted sentence 2024-04-30 08:11:57 -07:00
situ2001
eb79382a36 fix: update ip of example.com 2024-04-20 13:08:29 -07: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
e81dbec75d Fix refused test, TCP will get an early close, UDP will error out 2024-02-06 11:23:12 -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
d6a927aba8 add deny networks config option and examples 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
Sebastian J. Bronner
bf655508e9 Update comparison_benches.rs 2024-01-27 14:22:30 -05:00
Sebastian J. Bronner
35de3f8bff Update mod.rs 2024-01-27 14:22:30 -05:00
Benjamin Fry
4d292515a6 properly extract both IPv6 and IPv4 addresses for named tests 2024-01-04 23:28:12 -05:00
Benjamin Fry
f8d67265eb restructure test to use common regex 2024-01-04 23:28:12 -05:00
Benjamin Fry
d07ef69962 Remove generic Error from DnsHandle 2023-11-26 15:00:32 -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
daxpedda
6cbd26a508 Add root certificates to the binary crate 2023-10-12 22:11:53 -04:00
daxpedda
f10faa3516 Rename HTTPS implementation to H2 2023-10-06 09:12:32 -07:00
daxpedda
52194bf88c Remove unnecessary whitespace 2023-10-06 09:12:32 -07:00
daxpedda
766c0c854e Binary implementation 2023-10-06 09:12:32 -07:00
Dirkjan Ochtman
871e1d4639 Bump MSRV to 1.67 (for time) 2023-09-26 08:28:39 -07:00
Dirkjan Ochtman
1fef1e888f Avoid deprecated rustls API 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
Yuwei B
1df7537192 make it no mut 2023-09-07 14:41:42 +02:00
Zhang Jingqiang
3f9a68c15e use new version of webpki 2023-08-02 08:03:33 +02:00
Wojciech Przytuła
dc144276de Print offending bind error in panic message
This gives better debug experience, for free.
2023-06-20 10:58:22 -07:00
Benjamin Fry
2065cea7f7 remove all references to cargo-make and Makefile.toml 2023-06-05 08:41:46 -07:00
Benjamin Fry
2d352ae66a fixups for Rust 1.70 2023-06-01 17:39:08 -07:00
Benjamin Fry
c455bcd056 use workspace for all common package details 2023-05-10 22:55:38 +02:00
Benjamin Fry
3a099742fa cleanup workspace features 2023-05-10 22:55:38 +02:00
Benjamin Fry
f7383806a8 update version to 0.23-alpha.1 2023-05-10 22:55:38 +02:00
Benjamin Fry
4a1c4fe2d1 use new Types for A and AAAA record types 2023-03-24 08:47:59 -07:00
Benjamin Fry
f9aa112580 cleanup issues after merge with main and new-typed-record 2023-03-24 08:47:59 -07:00
Benjamin Fry
6652fa561d Change RecordData::try_borrow to return Option 2023-03-24 08:47:59 -07:00
Benjamin Fry
fbead51221 cleanup uses and copyrights 2023-03-24 08:47:59 -07:00
Benjamin Fry
9e56c123c2 fix RRSIG and SIG usage with new RecordData types 2023-03-24 08:47:59 -07:00
Benjamin Fry
f92b808612 Make Record carry type for internal RecordData 2023-03-24 08:47:59 -07:00
YISH
a0a4acb7cf Update MSRV to 1.64 2023-03-20 11:36:21 -07:00
YISH
590b47a3f2 Introduce central crate version management 2023-03-20 11:36:21 -07:00
Dirkjan Ochtman
343eeb806e Upgrade to 2021 edition 2023-03-20 08:49:12 -07:00
YISH
3f864686eb Make dns_hostname optional to disable verify 2023-03-19 12:25:00 -07:00
XOR-op
5492bdedba fix: stale benchmark 2023-03-06 09:18:31 +01:00
Benjamin Fry
b34dfff95c fix formatting for inline variables 2023-02-06 09:25:04 -08:00
Dirkjan Ochtman
532dca3bd9 Move client code used by server code down into proto 2023-02-06 09:25:04 -08:00
Daniel McCarney
3235d2b3f6 tests: named_test_configs -> test_configs 2023-01-10 16:35:21 -08:00
Daniel McCarney
9a461bb9a9 bin: named.rs -> trust-dns.rs 2023-01-10 16:35:21 -08:00
Daniel McCarney
2fd1dcff57 bin: remove 'named' binary refs 2023-01-10 16:35:21 -08:00