DNS server configuration – Linux

To use our apps and configurations, please sign up for an ExpressVPN account first.

Manually configuring your Linux computer with other DNS server addresses can help you access blocked sites and enjoy faster speeds.

To manually configure your computer with our DNS servers’ addresses, in Linux (Ubuntu):

  1. Run the following command:
    sudo apt-get install resolvconf
  2. Open the following file in an editor:
  3. Write the following lines to the file (these are Google DNS servers):
    If Google DNS is blocked for you, try Neustar DNS Advantage ( or or Level 3 DNS (,,,,, or
  4. Remove any other nameserver lines.
  5. Save the file.
  6. Backup the current configuration file, by running:
    sudo mv /etc/resolv.conf /etc/resolv.conf.backup
  7. Link to the new resolvconf configuration file, by running:
    sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
    sudo resolvconf -u
  8. Restart network services by running:
    sudo /etc/init.d/networking restart
  9. Try connecting to the VPN again.

If you are encountering issues with the above instructions, please contact the ExpressVPN Support Team for immediate assistance.

Back to Blocked Sites solution

Was this article helpful to you?1 2 Undo

Not an ExpressVPN user yet? Sign up today so you can start using our apps!

Install ExpressVPN on all your devices!

windows apple android ios linux chrome ebooks phones consoles router nas share