4 ms·
On fedora, import your wg.conf into NetworkManager (`nmcli connection import type wireguard wg0.conf`) and set up DNS using nm connection properties (ipv4.dns-s
by vetinari 5y ago
On fedora, import your wg.conf into NetworkManager (`nmcli connection import type wireguard wg0.conf`) and set up DNS using nm connection properties (ipv4.dns-search supports the ~.domain notation, see resolved.conf(5) for details).
The connection will auto-start; if you do now want that and you want manually start/stop ip, set ipv4.autoconnect=no.
Fedora uses systemd-resolved by default since the 33 release; if you installed older and then upgraded, check the network manager config if you are using it or not.