If you manually edited your /etc/resolv.conf file while you were connected to ExpressVPN, you may be unable to browse the web after you disconnect from ExpressVPN. This may occur even if you are able to browse while connected to ExpressVPN.

To troubleshoot:

  1. In your Terminal, enterexpressvpnctl disconnect
  1. Check how DNS is managed using the following command:readlink -f /etc/resolv.conf

The next steps depend on how DNS is managed.

Systemd-resolved

If “readlink -f /etc/resolv.conf” points to systemd-resolved (like “/run/systemd/resolve/stub-resolv.conf”), use these commands:

  1. Entersudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
  2. Entersudo systemctl restart systemd-resolved
  3. Entersudo systemctl restart NetworkManager 2>/dev/null || true
  4. Enterresolvectl status

Network Manager

If “readlink -f /etc/resolv.conf” returns “/etc/resolv.conf,” (no symlink) then your system is managed by NetworkManager. Run these commands:

  1. Entersudo rm -f /etc/resolv.conf
  2. Entersudo systemctl restart NetworkManager
  3. Enternmcli device show | grep DNS

Resolvconf (legacy)

If the “/etc/resolv.conf” points to resolvconf (like “/run/resolvconf/resolv.conf” or “/var/run/resolvconf/resolv.conf”):

  1. Entersudo ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf
  2. Entersudo resolvconf -u

If you still cannot browse:

Reboot your computer usingsudo reboot

If you need further assistance, contact the ExpressVPN Support Team.

Was this article helpful?

We're sorry to hear that. Let us know how we can improve.

A member of our Support Team will follow up on your issue.