Commit Graph

2752 Commits

Author SHA1 Message Date
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
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
Sebastian Ziebell
0ab6d0995f Only DNSKEY zone keys are allowed to match DS RR
In section [5.2 Processing of DS RRs When Validating Responses](https://datatracker.ietf.org/doc/html/rfc4034#section-5.2) it states "The DNSKEY RR referred to in the DS RR MUST be a DNSSEC zone key.".

This changes the verification that a corresponding DNSKEY for a DS RR not only matches the digest, but also is zone key.
2024-01-27 14:21:08 -05:00
Wiktor Kwapisiewicz
957078fd5a Fix a typo in crate description
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
2024-01-25 17:02:35 +01:00
Dirkjan Ochtman
5b4b915d49 Update rusqlite and idna 2024-01-24 07:03:15 +01:00
Dirkjan Ochtman
4b76d91f91 Update semver-compatible dependencies (except clap and deps) 2024-01-24 07:03:15 +01:00
dependabot[bot]
5edab29590 Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 15:54:35 +01:00
Benjamin Fry
2cdfab9bf0 clarify the iterators in the Lookup Types 2024-01-06 21:31:56 -05:00
Benjamin Fry
642d33ca71 cleanup rust docs 2024-01-06 21:31:56 -05:00
Marcus Butler
356bb541a4 Refactor is_subzone to use Name::zone_of with additional checks for partially/fully qualified domains. 2024-01-04 23:36:36 -05:00
Marcus Butler
4809a0d10b Changed to doc comment 2024-01-04 23:36:36 -05:00
Marcus Butler
c003a426f1 Change in_bailiwick function name to be more descriptive (is_subzone) 2024-01-04 23:36:36 -05:00
Marcus Butler
b4cd946eca Basic bailiwick checking for the recursor 2024-01-04 23:36:36 -05:00
Benjamin Fry
ea8ba5857f reenable ipv6 tests on linux 2024-01-04 23:28:12 -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
d38e04a349 when comparing IP addresses for UDP, only check IP and Port 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
Alexander Kjäll
1d944684bc Gate tests on required features 2024-01-01 16:55:55 -05:00
Marcus Butler
8911f53d15 Perform transaction id validation before query name validation 2024-01-01 16:52:33 -05:00
Marcus Butler
2f21bd3014 call to .iter().any() should be .iter().all() 2024-01-01 16:52:33 -05:00
Marcus Butler
1a4f26ef50 Validate query response section 2024-01-01 16:52:33 -05:00
Marcus Butler
8f05d14eed Increase source port entropy in UDP client 2024-01-01 14:04:24 -05:00
Marcus Butler
bf2ec3dfb5 Update zerocopy and zerocopy-derive to 0.7.32 (from 0.7.11) to address RUSTSEC-2023-0074. 2024-01-01 13:27:25 -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
Mattias Päivärinta
497faacc4b Support getting and setting the EDNS Z flags 2023-12-19 13:12:08 -05:00
Benjamin Fry
12cdbb75fa replace pkcs12 construction with raw cert/ca/key usage in rustls and native-tls tests 2023-12-04 09:11:53 -05:00
Benjamin Fry
be4d16893f update certs 2023-12-04 09:11:53 -05:00
Benjamin Fry
452a410a78 update openssl to 0.10.60 2023-12-04 09:11:53 -05:00
Benjamin Fry
eccfe5a151 cleanup error DnsHandle error changes 2023-11-26 15:00:32 -05:00
Benjamin Fry
d07ef69962 Remove generic Error from DnsHandle 2023-11-26 15:00:32 -05:00
Liam Gray
b0b6957b58
Add getters for resolver config and options (#2093) 2023-11-20 13:37:06 +01:00
Lyra Naeseth
2b1fe9e007 Fix initial vec capacity in NameServerConfigGroup::from_ips_clear
Building a `NameServerConfigGroup` using `from_ips_clear` currently
always causes a reallocation of the underlying `Vec<NameServerConfig>`,
because two config entries are inserted per IP, while capacity is only
reserved for one.

This fix adds the missing `2 *` constant factor to `Vec::with_capacity`.
2023-11-16 19:57:43 +01:00
Benjamin Fry
d07455476c
Add example for connecting over HTTP/2 (#2088)
Co-authored-by: marcbrevoort-cyberhive <69469731+marcbrevoort-cyberhive@users.noreply.github.com>
2023-11-06 11:00:05 +01:00
dependabot[bot]
bee9b31d41 Bump rustix from 0.37.23 to 0.37.26
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.37.23 to 0.37.26.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.23...v0.37.26)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 00:05:33 +01:00
zhangjingqiang
b0c0566483 update to use ring 0.17 2023-10-25 13:33:36 +02:00
zhangjingqiang
1fe35e6216 update ahash to get rid of yanked version 2023-10-24 23:38:51 -04:00
zhangjingqiang
759f8e0092 update h3 and h3-quinn 2023-10-24 23:38:51 -04:00
Benjamin Fry
bb20324562 add blog post to release notes for Hickory 2023-10-14 15:23:25 -04:00
Benjamin Fry
f1987f28b5 update logo to better for Github 2023-10-14 09:42:34 -04: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
Carlos López
c9cc5c9dd0 proto/rr: do not deserialize ClientSubnets with invalid prefixes
When serializing a ClientSubnet, if the source prefix is larger than
the address itself, we return an error. However, when deserializing
the same type we will happily take an invalid prefix. Fix this
consistency issue by rejecting invalid prefixes during
deserialization.
2023-10-12 11:53:58 +02:00
Keele
45bd92f4ac Fixes caching bug when CNAME leads to negative response 2023-10-07 12:58:15 -07:00
Benjamin Fry
c9a2ce42cb cleanliness updates for rustc 1.73 2023-10-06 14:57:10 -07:00