4 releases (2 breaking)

0.4.1 Feb 10, 2024
0.4.0 Nov 28, 2021
0.3.0 May 29, 2021
0.2.0 May 23, 2021

#1747 in Network programming


Used in mxdns

ISC license

30KB
612 lines

A simple and secure DNS client

API documentation

This is a fork of the dnsclient crate which adds extra features.

This crate can resolve IPv4 and IPv6 addresses and supports International Domain Names (IDNA). This DNS client also supports reverse DNS lookups of IP to name and it can lookup a nameserver for a domain.

The client transparently falls back to TCP when a truncated response is received.

The API is simple and the crate supports sync, async-std, tokio and smol.

Development

The documentation is generated for the sync feature. To test all features use scripts/test.sh.


lib.rs:

A Small and Flexible DNS Client

The DNS Client has the following features:

  • Resolves IPv4 and IPv6 addresses.
  • Supports reverse lookups of IPv4 and IPv6 addresses.
  • Can lookup a nameserver for a domain.

There are multiple features available and one feature must be chosen:

Feature Description
sync Synchronous API
std-async Async API using async-std
smol-async Async API using smol
tokio-async Async API using tokio

Dependencies

~2–12MB
~159K SLoC