nscd-lookup – look up IP addresses using nscd
Explicitly querying nscd might come in handy
if your program runs in a container or jail without direct internet access, but you still need to
look up a domain name for some reason.
use ;
use lookup;
let localhost: = lookup
.expect
.expect
.collect;
assert!;
assert!;
Or with the feature "tokio":
use ;
use lookup;
let localhost: = lookup
.await
.expect
.expect
.collect;
assert!;
assert!;
The feature "reqwest" enables a resolver that can be used in reqwest clients.