Best way to fix VPNs that don't work with systemd-resolved

I want to switch from Arch to Fedora, however I know from experience that the VPN i use (Astrill) doesn’t work with Fedora due to Fedora using systemd-resolved. I know that you can simply disable it however I’m not sure if there is a better way of solving the problem. Thanks for any help in advance.

Honestly, I don’t think there is. I’ve reverted to NetworkManager for DNS on all of my Fedora machines and that fixed all my resolution issues.

Unfortunately, it’s not quite as simple as disabling the service. To do this, you need to set DNS to “default” in the /etc/NetworkManager config*, systemctl disable --now systemd-resolved, delete the /etc/resolv.conf symlink, then systemctl restart NetworkManager and you should be good to go from there.

* To set this in NetworkManager, put this in /etc/NetworkManager/conf.d/dns.conf :

1 Like

Thanks, do you know how well NVIDIA Optimus laptops work on Fedora 36 with Wayland? All my display outputs are linked to my NVIDIA GPU but the laptop screen runs on the AMD IGPU. On Arch I have to use X11 due to Optimus Manager not working on Wayland. How does it work on Fedora?

It works fine on Fedora. If you’re using Gnome you should be able to right click on an app and select “Run with Discrete Graphics” or launch an app with DRI_PRIME=1 from terminal.

Hm. Thanks. I have two more questions. Firstly, is the best way to install Fedora via the netinstall or the Fedora Workstation ISO. Secondly, would deleting partitions in front of a Windows installation kill the Windows installation or would it be fine. Thanks.

Both ways are fine. If you want more custom “netinstall”, If you want “out of box desktop” WG it is.

I didn’t understand what do you mean by in front of a windows installation" If you just delete your “Fedora partitions” and re-install on empty space, you should be fine and windows will be fine as well. As long as If you don’t delete any windows partition

1 Like

In my experience windows installs with 4 partitions (uefi boot).
partition 1 is the esp partition
partition 2 is hidden system
partition 3 is the OS
partition 4 is the hidden recovery

When I install linux dual boot I use the windows disk manager to shrink partition 3 leaving enough unallocated space for my linux install. Then I just install into the available space. I have never had an issue with interference with windows as long as I selected to use the unallocated space. An automatic install is even smart enough to use the existing esp for uefi boot . I never delete a windows partition since doing that could break windows.

As stated above, A workstation install from ISO provides a default config, an everything (netinstall) allows you to select what you wish to tailor it for your own needs. Both work well and are designed for the users choice.

If reinstalling where you had an existing linux install you can do one of 2 things.

  1. delete the existing linux partitions and then install into the unallocated space as noted above
  2. Choose to do a custom install and select the already existing linux partitions to install into.

Either way will still avoid damaging the existing windows install.

1 Like

This is what I mean by in front of the windows partition.

Thanks, I’ll see what happens haha

1 Like

If you continue to have issues with it, it might be good to create a separate topic for it so that others can more easily find the eventual solution to it. They probably won’t think to look under a topic about systemd-resolved, and you might get more eyes on it, since this initial topic is already solved.

Yes I will. I have installed Fedora. My secondary display doesn’t work after installing the proprietary Nvidia driver from RPM Fusion under Wayland but X11 works fine for now. Thanks for the help

1 Like