Skip to content

A cross-platform Rust library to get DNS resolvers

License

Notifications You must be signed in to change notification settings

dandyvica/resolving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions

An utility crate to retrieve the DNS resolvers of the underlying host OS.

On UNIX-like platforms, it merely read the /etc/resolv.conf file.

On Windows, it uses the windows crate and calls the dedicated APIs to get the list of DNS resolvers for all interfaces (GetAdaptersAddresses). In addition on this platform, the ability to provide a interface index or interface name to all get the resolvers on those.

Usage:

use resolver::ResolverList;
let addresses = ResolverList::new().expect("failed to load DNS addresses");

println!("{} addresses found", addresses.len());

About

A cross-platform Rust library to get DNS resolvers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages