c-ares-resolver
DNS resolvers built on c-ares, for
asynchronous DNS requests.
This crate provides three resolver types - the Resolver, the FutureResolver,
and the BlockingResolver:
- The
Resolveris the thinnest wrapper around the underlyingc-areslibrary. It returns answers via callbacks. The other resolvers are built on top of this. - The
FutureResolverreturns answers asstd::future::Futures. - The
BlockingResolverisn't asynchronous at all - as the name suggests, it blocks until the lookup completes.
Documentation
API documentation is here.
Examples
use block_on;
Further example programs can be found here.