Cloudflare pic

Cloudflare is an internet security company that has expanded rapidly since 2014, thanks to its success in protecting websites from hacker attacks. The company started up in 2009 and has expanded constantly. In a very short period, Cloudflare has established an impeccable reputation as a world leader in cybersecurity. In 2018, the company extended its activities to provide a privacy-driven DNS service to the public.

Changing browser settings

The IP address of the Cloudflare DNS service is, which is very easy to remember. You just need to go into the network properties of your browser to get access to the service. You do not have to pay anything or create an account.

Cloudflare DNS on Windows

The browser type that you use doesn’t matter because the DNS setting is a property of your network, over which all browsers connect to the internet.

Step 1: Get to the network properties

  1. Open the Start menu and click on the cog symbol, just above the shutdown button. This will open the Windows Settings system.
  2. Click on Network and Internet to get to the Network Settings page. Click on Change adapter options. This will open a list of network connections.
  3. Right-click on the network you use to connect to the internet and select Properties from the context menu.

Windows Network Properties

Step 2: Set up DNS for IPv4

  1. In the connection properties window, look to see if the line Internet Protocol Version 4 (TCP/IPv4) is checked. If so, click on that line once and then press the Properties button. This will open another window.
  2. If there are values in the DNS fields, write them down in case you need to rollback to your current settings.
  3. Click on the Use the following DNS server addresses radio button.
  4. Enter in the Preferred DNS server field.
  5. Enter in the Alternate DNS server field.
  6. Click on the OK button and then click on Close in the connection properties window.
  7. Restart your browser to get it to use the Cloudflare DNS service.

Windows IPv4

Step 3: Set up DNS for IPv6

  1. If the line Internet Protocol Version 6 (TCP/IPv6) is checked in the connection properties screen, click on the line and press the Properties button. This will open another window.
  2. Note down any current values in the DNS fields if there are any. You may need to return to these settings at a later date.
  3. Click on the Use the following DNS server addresses radio button.
  4. Enter 2606:4700:4700::1111 in the Preferred DNS server field.
  5. Enter 2606:4700:4700::1001 in the Alternate DNS server field.
  6. Click on OK to close the protocol properties window and then press the Close button in the connection properties window.
  7. Restart your browser to get it to use the Cloudflare DNS service.

Cloudflare DNS on macOS

Setting up the Cloudflare DNS on Macs is very straightforward.

  1. Open System Preferences
  2. Perform a search for DNS Servers. Click on that entry in the results list.
  3. Click on the + symbol to add a new DNS record. Enter
  4. Click on the + symbol again and enter this time.
  5. Click on OK and then click Apply.
  6. Restart your browser to get the new DNS settings active.

Cloudflare DNS on Linux

These instructions are for Ubuntu. However the steps are almost identical for all flavors of Linux.

Step 1: Get to the network settings

  1. Look for the Applications icon in the left-hand menu. This symbol looks like a Rubik’s cube.
  2. Click on Settings and select Network.
  3. Look in the right-hand panel for your regular internet connection. Click on the cog icon.

Step 2: Set the DNS for IPv4

  1. In the connection settings screen, click on the IPv4 tab.
  2. In the DNS settings, move the Automatic slider to Off.
  3. Enter and in the two DNS address fields.
  4. Click on Apply.
  5. Restart your browser to get the changes to take effect.

Step 3: Set the DNS for IPv6

  1. In the connection settings screen, click on the IPv6 tab.
  2. In the DNS settings, set the Automatic slider to Off.
  3. Enter 2606:4700:4700::1111 and 2606:4700:4700::1001 in the two DNS address fields.
  4. Click on Apply.
  5. Restart your browser to get the changes to take effect.

Cloudflare DNS on Android

At present, Android devices only use IPv4 addresses. You need to be connected to the network that you want to change the DNS settings for.

  1. From the top of the screen, swipe down to get the settings bar to expand. Tap on WiFi. Tap on More Settings at the bottom of the list of available networks.
  2. Long-press on the name of your current network. Tap Modify Network in the popup that appears.
  3. Tap on Advanced options in the next screen and then tap on IP settings and select Static.
  4. Scroll down to the fields DNS1 and DNS2. If these fields have the values in them, note them down in case you want to return to your original settings.
  5. For DNS1 enter and in DNS2 enter
  6. Tap on Save.

Cloudflare DNS on iOS

Just like Android, iOS only uses IPv4 addresses.

  1. Tap on Settings in the Home screen. Select Wi-Fi from the Settings screen.
  2. In the Wi-Fi screen tap on the right-arrow next to the name of your internet connection.
  3. Tap Configure DNS and then Manual.
  4. If any DNS entries exist, note them down and then delete them.
  5. Tap on + Add Server. Enter for the address value.
  6. Tap on + Add Server. Enter for the address value.
  7. Tap on Save.

What is DNS?

A DNS service translates between web addresses and internet addresses. DNS has a double meaning. It stands for the Domain Name System, which is the methodology that deals with mapping between address types, and it also stands for “domain name server,” the database that holds those mappings.

A domain is the core part of a URL (universal resource locator). A URL is the entire address that you see in the address bar of your browser. So, in the URL, the domain name is

Domains were invented in the early 1990s by Sir Tim Burners-Lee when he formulated the system that is now called the World Wide Web. The addressing system is meaningless on the internet. The internet uses an addressing system called an IP address. “IP” stands for the Internet Protocol, which defines the conventions for sending messages over interconnected networks. The addressing system is one of the key elements of the Internet Protocol. A typical IP address looks like Routers understand these addresses and use them to pass messages on to their neighboring networks.

When you enter a URL in your browser, the first task the browser does is go to a DNS server and get the address of the server that is registered as hosting that website. There are many DNS servers in the world and the one that your browser uses is usually dictated by your internet service provider. However, it is possible to go into the settings of your browser and override the default DNS server selection.

DNS issues

DNS servers give out the real addresses of all the websites in the world. They are very powerful cogs in the global communications engine. The owner of a DNS service is able to make a website disappear. This is because if the DNS entries for a website are removed, your browser cannot get the IP address of that site’s host and so cannot send a request for the page you want to see. Governments that control web access sometimes use DNS servers to block off access to websites that they don’t like.

DNS hijacking is a great medium for hackers. If a hacker can control the DNS server that your browser uses, he can replace the real IP addresses of bona fide websites, such as Google, Yahoo, and financial sites, with the addresses of phishing sites. The benefit of DNS hijacking for cybercriminals is that the regular web address of the site appears in the browser, even though a fake version of that site is retrieved.

The transaction that takes place between your browser and a DNS server is unencrypted. This means anyone who intercepts your connections may record the addresses of all of the websites you visit. ISPs automatically get access to your web traffic and can read everything that isn’t encrypted, including the DNS transactions. Some ISPs have been caught out selling logs of users’ activities to marketing companies for targeted advertising and market research.

So, the selection of DNS server is very important for security, privacy, and for internet freedom. If you suspect the entries of your regular DNS service are blocking access to the sites you want to visit, if you want to put a stop to your web surfing being snooped on, or if you worry that a standard DNS has weak security protection and could be manipulated, you should look into DNS servers and choose one other than the service your ISP uses by default.

Cloudflare DNS considerations

Cloudflare will become a major rival to Google’s DNS service. Given Google’s major income stream from retargeted advertising, it is wise to be a little cautious about how its DNS service treats your privacy. However, there is no evidence that Google uses the transaction data from its DNS service to aid its targeted marketing business.

Although Cloudflare makes major claims about its integrity on protecting your privacy, it does have a small skeleton in its closet. The company doesn’t actually own the IP address. That very distinctive address is on loan from APNIC, which is the non-profit IP address distribution authority for the Asia Pacific region.

As part of the deal that Cloudflare did with APNIC, all DNS access records are available to APNIC for research purposes. However, Cloudflare declares that the IP addresses of the customers that access the DNS service are not available to APNIC, so no one identity is ever traceable. Cloudflare and APNIC are working together on a DDoS protection research project that relies on the aggregated DNS access data.

Another concern with the security of the Cloudflare DNS service arises from the Cloudbleed exploit discovered in 2017. This was a coding error in Cloudflare’s software that would enable hackers to get access to the usernames and passwords of the visitors to sites protected by Cloudflare. This problem was fixed by the company. However, although Cloudflare may have a very strong ethical stance on the protection of your privacy, new flaws in its software could expose your details to hackers and government security agencies anyway.

One very surprising fact about the Cloudflare DNS service is that just putting its address in your network settings does not provide any security at all. Communications between your browser and the Cloudflare server is unencrypted and just as visible to your ISP as connections to Google’s DNS server or the Cisco OpenDNS.

Cloudflare claims that tests by DNSPerf show its DNS servers’ response times are much faster than the most commonly used DNS services of Google and OpenDNS. So the major benefit that Cloudflare offers over its rivals isn’t privacy or security — it is speed.

Here are some DNSPerf tests results comparing the response speeds of Cloudflare DNS to Cisco OpenDNS, Comodo DNS, and Google DNS:

DNS Service Primary IP Address Alternative IP Address Response Time
OpenDNS 20.5 ms
Comodo DNS 72.7 ms
Google 34.16ms
Cloudflare 12.78 ms

Secure DNS transactions

The DNS system does have encryption capabilities. However, these are not applied automatically because both sides in a secure connection need to be working with the same protocols, and browsers do not encrypt for DNS calls.

There are three secure DNS protocols that would enable your browser’s DNS calls to be encrypted. You would need to find out which secure protocols your chosen DNS server can handle and then implement that system on your computer. Here are some of the most widely used DNS servers and the security protocols that they can implement.

DNS Service DNSCrypt DNS resolution over TLS DNS resolution over HTTPS
Cisco OpenDNS Yes Yes No
Google DNS No Yes Yes
Quad9 No Yes No
Cloudflare No Yes Yes
CleanBrowsing No No Yes

So you can use Cloudflare securely and block your ISP or any security agencies gathering information on the sites you visit. However, you would have to install a DNS resolution over TLS system or a DNS resolution over HTTPS package. Unfortunately, these encryption standards for DNS traffic are new and still being developed. Browser producers are interested in the concept of secure DNS transactions and have teams working on developing those capabilities, but there are no signs that these advancements are nearing completion.

DNS security solutions

Until browsers build in secure DNS options, you can take your own steps to protect your DNS traffic. However, the task is complicated and requires the skills of a cybersecurity specialist or a networking engineer.


One option would be to set up a security agent on your computer and get it to intercept all DNS calls from your browser and then send those requests on in an encrypted format. If you have a wifi router, you could set up a device with DNS resolution software and nominate that device’s network address as the DNS server in your router’s settings. That DNS resolver would then communicate with a secure DNS server using encryption. For example, you could set it up to communicate with the Cloudflare DNS using HTTPS as protection.

A much quicker and simpler solution is to sign up for a VPN service. The VPN includes a client program on your computer that coordinates with a VPN server to establish a secure connection, called a tunnel. All of the communication that leaves you computer has to go first down the tunnel to the VPN server, and that includes your browser’s calls to a DNS server.

VPNs usually provide their own DNS servers, or at least direct your DNS calls to a DNS server through its anonymizing service, so there is no way that an external DNS server could know who each request comes from. On its journey from your computer to the VPN server, your DNS request is entirely encrypted. Even the destination address of the request is hidden, and the replies from the DNS server return down the secure tunnel. No one — not your ISP, not hackers, and not government security agencies — will even know that a request has gone out to a DNS server, let alone see which site you are trying to reach.

Cloudflare DNS

Although there seem to be some speed advantages to using the Cloudflare DNS system, it offers no security advantages over its rivals. Until browsers start to build in secure DNS messaging, your best option to protect your privacy is to install a VPN. Once browsers gain secure DNS capabilities, then all of the major DNS services will be able to protect your privacy, not just Cloudflare.

If you want to take the VPN route to protect the privacy of your DNS transactions, be careful. Not all VPNs will protect you sufficiently. Some VPN services allow your computer to continue using its default DNS service, which lets outsiders see the unencrypted requests for web server addresses. This situation is called a DNS leak. Check out the more advanced VPNs and look into securing your browser against viruses, hackers and snoopers. One day, your DNS transactions will be secure. Until then, not even Cloudflare can protect your privacy fully.