mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-10-01 06:04:57 +02:00
8b97e43cb051d1c21322f70cd24d32a33cf75ff2
This PR changes the rdata::Txt type to reject empty record data as invalid. RFC 1035 states that the TXT-DATA is “One or more <character-string>s”. This means that there will have to be at least the length octet of the first character string. The PR also adjusts the TxtBuilder to never return a empty data. Since this requires being able to return an error in TxtBuilder:.finish, this is a breaking change. While at it, the PR also adds more control over the created character strings by making close_char_str public and adding a new append_char_str method. The PR also improves the documentation for the TXT record data types.
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%