Crates.io | rsdns |
lib.rs | rsdns |
version | 0.19.0 |
source | src |
created_at | 2021-08-06 09:45:20.422865 |
updated_at | 2024-08-30 06:19:30.211828 |
description | DNS Client Library |
homepage | |
repository | https://github.com/r-bk/rsdns |
max_upload_size | |
id | 432390 |
size | 349,730 |
rsdns is a Rust library for interacting with DNS servers.
Its main goal is to query the Domain Name System and return the results in easily consumable Rust types.
rsdns strives to be simple and fast. To be simple rsdns keeps a minimal API. To be fast rsdns aims to allow DNS message parsing with minimal overhead.
There are crates which implement asynchronous DNS clients, but are built for a single async runtime. This somewhat blocks usage of such client in an application built around another runtime. rsdns closes this gap and genuinely supports three different async runtimes. Moreover, rsdns has an independent synchronous client as well.
tokio
, async-std
and smol
std::net
SO_BINDTODEVICE
support)rsdns comes with a small command-line tool ch4. ch4 uses rsdns to query the Domain Name System, and shows the results in a zone-file format. It can be used as a simple substitute for dig, especially on platforms where dig is not originally supported.
A
, NS
, TXT
, CNAME
, SOA
, MX
, PTR
, ANY
etc.AAAA
The next planned features are:
The changelog is maintained in CHANGELOG.md
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.