setdns 0.1.1

Temporarily apply and restore system DNS configuration, including global and split DNS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
mod unsupported;
#[cfg(target_os = "windows")]
mod windows;

#[cfg(target_os = "linux")]
pub(crate) use linux::SetDns;
#[cfg(target_os = "macos")]
pub(crate) use macos::SetDns;
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
pub(crate) use unsupported::SetDns;
#[cfg(target_os = "windows")]
pub(crate) use windows::SetDns;