Failed to set DNS server | Handheld Edition

Hello there,

im trying to set up DNS over HTTPS via the new CachyOS Hello feature that works through blocky, available since the latest release. But no matter which server is select through the dropdown, i always get ERROR: Failed to set DNS server!.

On desktop it worked fine, just not on the handheld edition.

Seems like it fails to set the IPv4/IPv6 values. Have you tried clicking the Reset button in that same window and trying again?

In any case, this is probably the part that raises the error:

    // dns-over-tls: -1 = default, 0 = no, 1 = opportunistic, 2 = yes (strict)
    let dot_value = if enable_dot { 2 } else { 0 };
    let result = (|| -> anyhow::Result<()> {
        nmcli_mod(conn_name, "ipv4.dns", &ipv4_with_sni)?;
        nmcli_mod(conn_name, "ipv4.dns-priority", "-1")?;
        nmcli_mod(conn_name, "ipv6.dns", &ipv6_with_sni)?;
        nmcli_mod(conn_name, "ipv6.dns-priority", "-1")?;
        nmcli_mod(conn_name, "connection.dns-over-tls", &dot_value.to_string())?;
        systemd_units::systemd_restart("NetworkManager.service", Scope::System)?;
        Ok(())
    })();
    if result.is_ok() {
        dialog_tx
            .send_blocking(DialogMessage {
                msg: fl!("dns-server-changed"),
                msg_type: MessageType::Info,
                action: Action::SetDnsServer,
            })
            .expect("Couldn't send data to channel");
    } else {  //  <-- Failed to set IP values
        dialog_tx
            .send_blocking(DialogMessage {
                msg: fl!("dns-server-failed"),  // <-- Raises error
                msg_type: MessageType::Error,
                action: Action::SetDnsServer,
            })
            .expect("Couldn't send data to channel");
    }

Hopefully one of the maintainers can take a look.

I did, yeah. It just says the reset was successful, but it changes nothing sadly. If i try to set DoH again after the reset, the same error appears.

Also have the same error but on my desktop edition. For some reason it only fails when I change dns on my main wired connection, if i connect to the wifi it changes no problem. No idea what’s causing it