| Crates.io | dnsur |
| lib.rs | dnsur |
| version | 0.1.0 |
| created_at | 2024-12-22 00:02:12.904353+00 |
| updated_at | 2024-12-22 00:02:12.904353+00 |
| description | An asynchronous DNS stub resolver |
| homepage | |
| repository | https://github.com/mselee/dnsur |
| max_upload_size | |
| id | 1491566 |
| size | 36,687 |
An asynchronous DNS stub resolver.
The monoio async runtime does not ship with an asynchronous DNS resolver, and rather relies
on a threadpool to handle the blocking calls (like most other runtimes). This library aims to do the resolution in an async manner, including the file system access (using io_uring).
/etc/hosts and /etc/resolv.conf are parsed to build the configuration.hosts are tried first, and if not present, the nameservers from resolv.conf will be queried.| limitation | glibc | dnsur |
|---|---|---|
nameserver |
3 | unlimited |
timeout |
30 | u64::MAX |
ndots |
15 | u8::MAX |
attempts |
5 | u8::MAX |
rotateHic Sunt Dracones
Mozilla Public License Version 2.0. See the LICENSE file for details.
This library is inspired by async-dns