dns 0.0.2-pre2

A DNS library for Rust.
docs.rs failed to build dns-0.0.2-pre2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: dns-0.0.3-pre1

Rust DNS

A DNS library for the Rust language.

Sample client code is located in src/bin/testclient.rs. There is currently no write support, so it sends a captured sample packet doing a recursive A-record lookup for facebook.com, parses the response, and prints out an fmt::Show view of the response.

There are currently two implementations in the library.

dns::hp

Minimal-allocation DNS packet parsing code. With ~500 byte packets (i.e., nameservers and glue records for the .com TLD), the rudimentary benchmark in src/bin/benchmark.rs it can handle about 160,000 packets per second with 4 threads on a quad-cord 2012 Retina MacBook Pro.

This implementation is very narrowly architected for fast parsing, and has no support for constructing packets.

dns::msg

General-purpose DNS packet parsing and representation. Designed to support both parsing and construction of DNS queries and responses.