domain 0.2.0

A DNS library for Rust.
Documentation

domain

A DNS library for Rust.

Travis Build Status Current

Documentation

Usage

First, add this to your Cargo.toml:

[dependencies]
domain = "0.2"

Then, add this to your crate root:

extern crate domain;

Features (aka TODO)

Eventually, this crate will provide the following functions:

  • DNS data handling

    • Basic types.

    • Implementations for all IANA-registered record types.

    • Wire-format parsing and constructing.

    • Master format parsing and constructing.

  • Stub resolver.

    • Asynchronous stub resolver based on futures and tokio.

    • Rich set of DNS tasks:

      • querying for raw DNS records,

      • querying for host names,

      • reverse host name queries,

      • querying for mail servers (MX records),

      • querying for server addresses based on SRV,

      • verification of server certificates based on TLSA,

      • verification of PGP keys based on OPENPGPKEY,

      • verification of S/MIME certificates based on SMIMEA,

    • EDNS support.

    • DNSSEC verification of records.

    • DTLS- and TLS-secured connections to upstream resolver.

  • Recursive resolver (details TBD).

  • Authoritative name server (details TBD).

The idea for both the recursive resolver and the authoritative name server currently is to supply libraries that allow including this functionality in programs instead of building general purpose products. We may split the four top-level points into separate crates along the way.

Contributing

If you have comments, proposed changes, or would like to contribute, please open an issue.

Licensing

domain is distributed under the terms of the MIT license. See LICENSE for details.