matomo

Best deal of the year - get 77% off our 2-year plan for Black Friday! Get Deal

Change your DNS servers to OVPN’s

David Wibergh, about Products & features

In order to counter DNS leaks, OVPN offers two public DNS servers that our customers can use. If you're wondering what a DNS leak is, and why should you care, I suggest reading this article which explains the ins and outs of DNS leakage.

Before you start

Write down your current DNS servers before you change to our DNS servers, just in case you experience any problems. We will be going through how you find your current DNS servers for every operating system.

Our public DNS servers

Our IPv4 addresses are:

46.227.67.134
192.165.9.158

Our IPv6 addresses are:

2a07:a880:4601:10f0:cd45::1
2001:67c:750:1:cafe:cd45::1

Windows

These instructions are made for Windows 7 and can also be used by different versions of Windows since they are pretty similar.

  1. Open Control panel.
  2. Click Network and Internet > Network and Sharing Center > Change adapter settings.
  3. Double-click on the connection you want to use.
    • For wireless, choose Wi-Fi.
    • If you are connected by wire, choose Ethernet.
    • If you are using both, you should configure both connections.
  4. Click on Properties. If it requires you to enter your admin password, go ahead and do that.
  5. A new window has now been opened. Make sure you are in Network and not in Sharing.
  6. Below the text This connection uses the following items:, choose
  • Internet Protocol Version 4 (TCP/IPv4) if you want to configure for IPv4
  • Internet Protocol Version 6 (TCP/IPv6) if you want to configure for IPv6
    and click on Properties. If you aren’t sure which one you want to configure, you can do both by doing the following steps.
  1. If there are IP addresses entered in Preferred DNS server and Alternate DNS server, write those down now. By doing that, you have them available in case you want to change back later.
  2. Click Use the following IP addresses and enter
    • 46.227.67.134 as Preferred DNS server and 192.165.9.158 as Alternate DNS server if you chose Internet Protocol Version 4 (TCP/IPv4) in Step 6.
    • 2a07:a880:4601:10f0:cd45::1 as Preferred DNS server, and 2001:67c:750:1:cafe:cd45::1 as Alternate DNS server if you chose Internet Protocol Version 6 (TCP/IPv6) in Step 6.
  3. Click on OK and restart your connection.
  4. Verify that it’s working by following the instructions under Test your connection at the end of this article.
  5. Repeat the procedure from Step 3 onward if you want to configure more connections.

Mac OS X

These instructions are made for Max OS X 9.4 and can also be used by different versions of OS X since they are pretty similar.

  1. Click on System Preferences in the Apple menu and then on Network.
  2. If the icon on the lower-left corner is displayed as locked, click on it and enter your password.
  3. Click on the connection you want to use.
    • For wireless, choose Wi-Fi.
    • If you are connected by wire, choose Ethernet, alternatively USB Ethernet if your internet cable has a USB outlet.
    • If you are using both, you should configure both connections.
  4. Click on Advanced..., and then on the DNS tab.
  5. Write down the IP addresses in case you want to change them back later.
  6. Click on the plus icon in the left row and enter:
    • 46.227.67.134 and 192.165.9.158 if you’re using IPv4
    • 2a07:a880:4601:10f0:cd45::1 and 2001:67c:750:1:cafe:cd45::1 if you’re using IPv6
  7. Click OK.
  8. Verify that it’s working by following the instructions under Test your connection at the end of this article.
  9. Repeat the procedure from Step 3 onward if you want to configure more connections.

Ubuntu

These instructions are made for Ubuntu 14.04 LTS and can also be used by different versions of Ubuntu since they are pretty similar.

  1. Click on System Preferences in the menu. Alternatively, search for System Preferences, then click on Network.
  2. Click on the connection you want to use.
    • For wireless, choose Wireless in the left column, find the network you’re using in the right column, and click on the arrow on the same line as the name of the network. Click on Advanced... on the lower-right corner.
    • If you are connected by wire, choose Ethernet in the left column and then on Advanced... on the lower-right corner.
    • If you are using both, you should configure both connections.
  3. Click on IPv4 Settings or, alternatively, IPv6 Settings.
  4. Change Method to Automatic (DHCP).
  5. Enter 46.227.67.134 and 192.165.9.158 as DNS servers if you chose IPv4 Settings.
    Enter 2a07:a880:4601:10f0:cd45::1 and 2001:67c:750:1:cafe:cd45::1 as DNS servers if you chose IPv6 Settings.
    Important: Separate the IP addresses with the spacebar.
  6. Click on Save. If it requires you to enter your admin password, go ahead and do that.
  7. Verify that it’s working by following the instructions under Test your connection at the end of this article.
  8. Repeat the procedure from Step 3 onward if you want to configure more connections.

Debian

  1. Edit /etc/resolv.conf:
    sudo vi /etc/resolv.conf

  2. If you see any lines containing nameserver, then write them down in case you want to change back later.

  3. Replace or enter the nameserver lines:
    For IPv4:

    nameserver 46.227.67.134

    nameserver 192.165.9.158

    For IPv6:

    nameserver 2a07:a880:4601:10f0:cd45::1

    nameserver 2001:67c:750:1:cafe:cd45::1

    You edit the file by clicking on i.

  4. Save the file by moving away from the edit mode (click Esc) and then enter :x. Please note that it has to be a small x.

  5. Restart your internet connections.

  6. Verify that it’s working by following the instructions under Test your connection at the end of this article.

If you’re using DHCP software that is creating the settings in /etc/resolv.conf, you need to edit the configuration file for the software. You do this by:

  1. Make a copy of /etc/resolv.conf:
    sudo cp /etc/resolv.conf /etc/resolv.conf.auto

  2. Edit /etc/dhcp3/dhclient.conf:
    sudo vi /etc/dhcp3/dhclient.conf

  3. If you see any lines containing nameserver, then write them down in case you want to change back later.

  4. Replace or enter the nameserver lines:
    For IPv4:

    prepend domain-name-servers 46.227.67.134, 192.165.9.158;

    For IPv6:

    prepend domain-name-servers 2a07:a880:4601:10f0:cd45::1, 2001:67c:750:1:cafe:cd45::1;

    You edit the file by clicking on i.

  5. Save the file by moving away from the edit mode (hit Esc) and then enter :x. Please note that it has to be a small x.

  6. Restart your internet connections.

  7. Verify that it’s working by following the instructions under Test your connection at the end of this article.

Test your connection

  1. Open a browser and try to visit http://www.google.com/. If you can enter the site, bookmark it and try to enter it again by clicking on the bookmark. If both these methods work, your new DNS settings are working as intended. If not, go to Step 2.
  2. Open a browser and try to visit http://18.62.0.96/ (this will direct you to http://www.eecs.mit.edu/). If you can enter the site, bookmark it and try to enter it again by clicking on the bookmark. If both these work, but Step 1 doesn’t work, something went wrong with your DNS configuration. Try to follow the guide for your operating system again to make sure you did everything correctly. If these tests still don’t work, go to Step 3.
  3. Revert all DNS settings you made in the guide, and then do these tests again. If the tests still don’t work, there is something wrong with your network settings, and you should contact your internet provider or a network administrator.
David Wibergh