diff --git a/rust/gui-client/src-tauri/src/client/resolvers.rs b/rust/gui-client/src-tauri/src/client/resolvers.rs index 44b9f8ab8..c24d4ef71 100644 --- a/rust/gui-client/src-tauri/src/client/resolvers.rs +++ b/rust/gui-client/src-tauri/src/client/resolvers.rs @@ -7,12 +7,8 @@ mod imp { use anyhow::Result; use std::net::IpAddr; - // TODO: The code here will depend on the chosen DNS control method. - // So that will need to be threaded in here somehow. - #[allow(clippy::unnecessary_wraps)] pub fn get() -> Result> { - tracing::error!("Resolvers module not yet implemented for Linux, returning empty Vec"); - Ok(Vec::default()) + firezone_headless_client::imp::get_system_default_resolvers_systemd_resolved() } } diff --git a/rust/headless-client/src/imp_linux.rs b/rust/headless-client/src/imp_linux.rs index 95f4cf112..61de99459 100644 --- a/rust/headless-client/src/imp_linux.rs +++ b/rust/headless-client/src/imp_linux.rs @@ -139,7 +139,7 @@ fn get_system_default_resolvers_network_manager() -> Result> { } /// Returns the DNS servers listed in `resolvectl dns` -fn get_system_default_resolvers_systemd_resolved() -> Result> { +pub fn get_system_default_resolvers_systemd_resolved() -> Result> { // Unfortunately systemd-resolved does not have a machine-readable // text output for this command: //