Changing DNS Settings in Linux

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, please try:
    • Neustar DNS Advantage ( and,
    • Level3 DNS ( and
  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 TorGuard Support Team for immediate assistance.

Was this answer helpful? 158 Users Found This Useful (387 Votes)