mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-26 03:34:56 +02:00
7a0819dc90d3fdaaf20f8d73dec830b961905d5a
This PR fixes TXT record data serialization for human-readable formats. TXT record data is now serialized as a sequence of character strings. It also deserializes from such a sequence. If supported by the format, it alternatively deserializes from a string that is broken up into 255 octet chunks if necessary. It uses a newly added helper type base::charstr::DeserializeCharStrSeed that deserializes character strings by appending them to an octets builder. Since this may be useful for other cases, it has been made public. This is a breaking change.
domain – A DNS library for Rust
A library for interacting with the Domain Name System. The crate contains an ever-growing set of building blocks for including DNS functionality in applications.
Currently, these blocks include:
- basic data structures and functionality for creating and parsing DNS data and messages,
- support for signing and verifying messages using the TSIG mechanism,
- experimental support for reading data from DNS master files (also known as zone files),
- experimental and as yet incomplete support for DNSSEC signing and validation,
- a simple Tokio-based stub resolver.
If you have ideas, requests, or proposals for future features, please don’t hesitate to open Github issues.
Licensing
The domain crate is distributed under the terms of the BSD-3-clause license. See the LICENSE file for details.
Languages
Rust
100%