Commit Graph
1055 Commits
Author SHA1 Message Date
Terts Diepraam dd21d8fa2e Don't parse rdata in outgoing message as client
This makes it possible to send UPDATE messages, which is necessary
for the reimplementation of ldns-update.
2024-10-22 10:42:35 +02:00
Martin Hoffmann 4663a8cfaf Update changelog. 2024-10-14 16:47:22 +02:00
Martin HoffmannandGitHub 874d44b99b Release 0.10.3. (#415)
New

* Added `Deserialize` impl for the `base::net::nostd::Ipv6Addr` and fixed
  the impl for `Ipv4Addr`. ([#413])

Bug fixes

* Fixed an incorrect feature gate that blocks compilation if only `"net"`
  is enabled. ([#412])
* Added (all? most?) missing feature dependencies for all features.
* Fixed `Deserialize` impls for `ParsedName` and `ExtendedError` to compile
  and work without `std`. ([#413])
v0.10.3
2024-10-14 16:44:41 +02:00
Martin Hoffmann 42f728f598 Fix doctest without std. 2024-10-14 16:20:27 +02:00
Martin Hoffmann e927007e54 Update changelog. 2024-10-14 16:09:05 +02:00
Martin Hoffmann 51440b4885 Resolve feature dependencies. 2024-10-14 16:05:31 +02:00
Martin HoffmannandGitHub a4007c16be Don’t use feature-gated StoredName alias in server middleware. (#414) 2024-10-14 15:58:03 +02:00
Martin Hoffmann 5e1ddb94d6 Make tsig module compile without std. 2024-10-14 15:44:40 +02:00
Martin Hoffmann 4b1101ab67 Prevent dead code warning for utils::config. 2024-10-14 15:43:10 +02:00
Martin HoffmannandGitHub 6b5de84b9a Fix serde impls to work with nostd. (#413)
This PR fixes issues that block building the "serde" feature without "std".

Specifically:

* Change the Serialize impls of ParsedName and ExtendedError to not build
  strings first.
* Added a Deserialize impl to base::net:nostd::Ipv6Addr and fixed the impl
  for Ipv4Addr.
2024-10-14 15:35:41 +02:00
Martin Hoffmann 6ce4ef1567 Update changelog. 2024-10-14 12:06:37 +02:00
Ximon EighteenandGitHub 0e16617a37 Fix compilation if only feature net is enabled. (#412) 2024-10-14 12:04:48 +02:00
Martin Hoffmann e3b5f8d941 Update changelog. 2024-10-10 15:20:22 +02:00
Martin HoffmannandGitHub 3c6388237f Prepare for release 0.10.2. (#410) v0.10.2 2024-10-10 15:15:54 +02:00
Alex BandandGitHub e308da1f53 Remove stray } 2024-10-10 14:16:00 +02:00
Martin Hoffmann c0391d178a Add a link to the plan. 2024-10-10 14:13:43 +02:00
Martin HoffmannandGitHub a80177c5f2 Update README. (#409) 2024-10-10 14:10:08 +02:00
Martin HoffmannandGitHub 86e4da19c8 Update dependencies. (#408) 2024-10-10 14:02:10 +02:00
Ximon EighteenandGitHub 9b13117858 Update changelog. 2024-10-10 10:52:35 +02:00
Ximon EighteenandGitHub 9cc068d7ae Empty NSEC3 salt should be a dash in zone presentation format. (#407) 2024-10-10 10:49:50 +02:00
Ximon Eighteen 0004340da4 Revert "Empty NSEC3 salt should render in presentation format as a dash according to RFC 5155 section 3.3."
This reverts commit 95e8a5a74e0266824af0198a395bc87cb0729501.
2024-10-08 13:55:44 +02:00
Ximon Eighteen b8e6be57f0 Empty NSEC3 salt should render in presentation format as a dash according to RFC 5155 section 3.3. 2024-10-08 13:54:37 +02:00
Ximon EighteenandGitHub 26394b5986 Minor typo correction in RustDoc comment. 2024-10-08 10:28:49 +02:00
Ximon EighteenandGitHub 7943f3da83 Fix indentation and remove unused settings in auth-zones test. (#402) 2024-10-07 14:27:24 +02:00
Ximon EighteenandGitHub 14d8aa083d Update changelog. 2024-10-07 14:26:42 +02:00
Ximon EighteenandGitHub d477ad0d6f Update changelog. 2024-10-07 14:25:25 +02:00
Ximon EighteenandGitHub 2266779d76 Correctly reserve space for OPT in EdnsMiddlewareSvc. (#403) 2024-10-07 14:22:25 +02:00
Ximon EighteenandGitHub 6eb4b846d4 Add and improve middleware related RustDocs. (#370) 2024-10-07 14:16:35 +02:00
Ximon EighteenandGitHub d9b689a942 Consistently refer to zonefile r/w as experimental. (#387) 2024-10-07 14:15:07 +02:00
Ximon Eighteen 212b097391 Update changelog. 2024-10-04 13:52:17 +02:00
Ximon EighteenandGitHub 146ad36799 Improved handling of errors while sending TCP responses. (#309)
- FIX: Abort a TCP connection if a fatal I/O error is detected when writing to the client, such as the client disconnected.
- FIX: Stop processing a response stream if the connection is shutting down or there is no space left in the response queue.
- Add a test that deliberately disconnects before the last response is received.
- Removed commented out code and fix some comments.
- Remove unnecessary ServiceError error variant.
- Fix a test bug whereby the test message bytes were accidentally offset by 2 meaning that the message header was wrongly perceived as having the QR bit set so requests were rejected as replies, never being handled and thus never having responses sent, which couldn't fail because the connection was closed... hence breaking the test.
2024-10-04 13:50:21 +02:00
Ximon Eighteen 11ab8067bd Update changelog. 2024-10-03 16:26:47 +02:00
Ximon EighteenandGitHub a7e37e795c Various EDNS middleware fixes and improved Stelline test: (#355)
- Reply with FORMERR if an OPT RR cannot be parsed.
- Don't reply with FORMERR if an edns-tcp-keepalive option is received via UDP, instead ignore it per RFC 7828 3.2.1.
- Only reserve space for an edns-tcp-keepalive option for TCP requests, not UDP requests.
- Always reserve space for an OPT RR in the response for any request that has an OPT RR, not just TCP requests.
- Disable TCP client retries in Stelline server tests otherwise a connection abort causes a retry which violates the test expectation.
2024-10-03 16:22:41 +02:00
Martin Hoffmann 890d458c56 Update changelog. 2024-10-03 15:34:07 +02:00
Ximon EighteenandGitHub f111cc6316 Set the AA flag and include glue in responses. (#400)
This PR adds handling of the AA flag and additional records to zonetree
answer generation.
2024-10-03 15:28:51 +02:00
Ximon Eighteen 442b3042d9 Update changelog. 2024-10-03 13:35:46 +02:00
Ximon EighteenandGitHub 930786ed2e FIX: Servers should drop received DNS response messages, not propagate them for processing. (#381) 2024-10-03 13:34:55 +02:00
Ximon Eighteen 1c7be5d8d0 Minor corrections in code comments. 2024-10-03 13:31:46 +02:00
Martin Hoffmann 197fe0c9a4 Update changelog. 2024-10-03 12:47:16 +02:00
Martin Hoffmann 52a19441ee Update changelog. 2024-10-03 12:35:27 +02:00
Ximon EighteenandGitHub 41d72b33e6 Usability tweaks (#397)
This PR adds a few trait impls and documentation.

Specifically:

* Add blanket `SendRequest` and `SendRequestMulti` impls for boxes.
* Add `Display` impl to `tsig::Key`.
* Add an `as_any` method and `Clone` and `Debug` impls to various zonetree
  types.
* Add `AsRef<dyn ZoneStore>` to `Zone`.
2024-10-03 12:33:58 +02:00
3b7ccb7197 Link to definition of DNS (#386)
* Link to definition of DNS
* Also spell out DNS.

---------

Co-authored-by: Martin Hoffmann <martin@nlnetlabs.nl>
2024-10-03 12:19:32 +02:00
Ximon Eighteen 3227bd185c Typo correction in RustDoc comment. 2024-10-03 10:25:15 +02:00
Ximon Eighteen 3ab7d5fd68 Update changelog. 2024-10-02 21:56:07 +02:00
Ximon EighteenandGitHub a35412186b Extend MandatoryMiddlewareSvc with an RFC 9619 check for opcode QUERY with QDCOUNT > 1. (#365) 2024-10-02 21:54:21 +02:00
Ximon Eighteen 38cbb13a20 Update changelog. 2024-10-02 21:35:38 +02:00
Ximon EighteenandGitHub 01fccdf942 Add XFR middleware. (#384)
Add XFR middleware and:
- Fixes a bug where the incorrect owner name was passed to the zone walker callback.
- New `ixfr-client.rs` example.
- Updated `serve-zone.rs` example demonstrating TSIG authenticated XFR and NOTIFY middlewares.
- Additional From impls for CallResult.
- Renames ZoneDiff to InMemoryZoneDiff.
- Renames ZoneDiffBuilder to InMemoryZoneDiffBuilder.
- Introduces new ZoneDiff and related traits.
- Adds AnswerContent::first().
2024-10-02 21:28:01 +02:00
Ximon Eighteen c87c6d50a8 Update changelog. 2024-10-02 21:05:32 +02:00
Ximon EighteenandGitHub 56aa3e35b0 Fix zone walking to include non-leaf CNAMEs (#352)
Add code to emit the non-leaf CNAMEs to the zone walker callback operation.
2024-10-02 21:04:23 +02:00
Ximon Eighteen bc69bc205c Update changelog. 2024-10-02 20:58:34 +02:00