I tried both Mullvad and Mozilla VPN and when I do a dns test, both are still using my ISP’s DNS instead of the VPN’s. This only happens on my Arch systems, works fine on my phone.

EDIT: Turns out these VPN clients depend on systemd-resolved in order to change your DNS. Enabling the service makes it work properly. A bit scary that they don’t give you a warning that you’re leaking DNS if you don’t have systemd-resolved enabled.

  • lckdscl [they/them]@whiskers.bim.boats
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Are you using systemd-resolved and systemd-networkd? If so, have you checked and double checked you set up your config with the appropriate lines in /etc/systemd/resolved.conf and /etc/systemd/network/*.network?

    Also make sure to reload the appropriate systemd unit files after changing network and DNS configuration (you don’t have to restart).

    Maybe this can help?

    https://wiki.archlinux.org/title/Domain_name_resolution

      • lckdscl [they/them]@whiskers.bim.boats
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 year ago

        Then are you using NetworkManager? Or dhcpcd? As there are a few ways to resolve DNS on Linux so it depends on what you’re using.

        Have you looked into /etc/resolv.conf ? Whichever method you’re using for your network configuration might be overwriting the defaults in there.

        edit: letter