26 releases

0.10.3 Oct 14, 2024
0.10.1 Jun 3, 2024
0.9.3 Dec 28, 2023
0.9.2 Nov 16, 2023
0.1.0 Oct 14, 2016

#52 in Network programming

Download history 20275/week @ 2024-08-22 22201/week @ 2024-08-29 17707/week @ 2024-09-05 17623/week @ 2024-09-12 13649/week @ 2024-09-19 19711/week @ 2024-09-26 20454/week @ 2024-10-03 21975/week @ 2024-10-10 19728/week @ 2024-10-17 20130/week @ 2024-10-24 20915/week @ 2024-10-31 19679/week @ 2024-11-07 19871/week @ 2024-11-14 18243/week @ 2024-11-21 23490/week @ 2024-11-28 15050/week @ 2024-12-05

80,801 downloads per month
Used in 31 crates (26 directly)

BSD-3-Clause

3MB
60K SLoC

domain – A DNS library for Rust

Current Documentation Mastodon Follow

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,
  • a simple Tokio-based stub resolver,
  • experimental support for DNS client and server transports,
  • experimental support for reading data from DNS zone files, storing them in memory and answering queries,
  • experimental support for zone transfer, including support for TSIG,
  • experimental and as yet incomplete support for DNSSEC signing and validation.

The library is currently under heavy development and additional building blocks and features are being added.

Minimal Supported Rust Versions

We are trying to maintain a decent balance between being able to use older compiler versions and using new features that improve safety and usability of the crate.

Minimum version: 1.68.2

The rust-version given in Cargo.toml is the oldest version that can be used to compile the crate with the minimal versions of all dependencies selected.

You can run cargo +nightly update -Z minimal-versions to ask Cargo to select these minimal versions for all dependencies.

Current version: 1.76.0

This is the minimum Rust version required to build with latest version of all dependencies at time of release. Cargo.lock contains these versions for reference.

Licensing

The domain crate is distributed under the terms of the BSD-3-clause license. See the LICENSE file for details.

Dependencies

~1–15MB
~205K SLoC