TorGuard Account Area

Add to Favourites    Print this Article

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:
    /etc/resolvconf/resolv.conf.d/base
  3. Write the following lines to the file (these are Google DNS servers):
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    If Google DNS is blocked for you, please try:
    • Neustar DNS Advantage (156.154.70.1 and 156.154.71.1),
    • Level3 DNS (4.2.2.1 and 4.2.2.2)
  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.



Also Read