How to configure Cloudflare's DNS service on Windows 10 or your router

Every bit of your web traffic runs through a DNS — a Domain Name Service — usually managed by your ISP. A number of companies offer alternatives, allowing you to route your traffic through faster or more secure means, and web infrastructure giant Cloudflare has rolled out their own DNS for consumers: Cloudflare promises its new DNS is not only faster than the competition, but it's also more secure and private too.

What is Cloudflare?

Cloudflare is a web infrastructure company, offering content delivery network (CDN), Distributed Denial of Service (DDoS) mitigation, Authoritative DNS services, and now a consumer DNS resolver service. Its network serves more than 6 million websites, including heavyweights like Uber, OkCupid, and Mobile Nations. Between all of its services, Cloudflare has a huge infrastructure spread out around the globe — the closer its CDN servers are to your computer, the faster it can serve content to you. The sheer size of the Cloudflare CDN also means it had potential to serve as a consumer-level DNS system.

What is DNS and what makes Cloudflare's service unique?

DNS is essentially the web's phonebook. Every website is located at an IP address — a string of digits that denote the exact web location of the server. Because remembering a bunch of IP addresses like would be a pain, instead we have domain names like, which is stored in a DNS database alongside the IP address. You type into your browser, your computer sends that through the network to a DNS, which then returns the page located at

Your ISP has its own DNS resolver, making it easy to just hook up service and get online. But they're not always the fastest or most secure services, so third-party options have been growing in popularity. Over the years, we've seen a lot of companies offering fast DNS services, including Cisco OpenDNS and Google Public DNS. While these services are known to be fast and reliable, Cloudflare's is expected to be even faster and more secure.

Image credit: Cloudflare

According to Cloudflare,'s average latency is around 14ms, making it the fastest DNS resolver everywhere (Google Public DNS latency average is 34ms). Alongside speed, Cloudflare is also touting greater privacy promising that users records will never be stored on disks, and it'll flush out logs every 24 hours.

In this Windows 10 guide, we'll walk you through the steps to configure your router or computer to use the new super-fast and secure DNS resolver from Cloudflare.

Cloudflare free DNS resolver IP addresses

These are the IP addresses to set up Cloudflare's consumer DNS service on a computer or router.

IP version 4


IP version 6

  • 2606:4700:4700::1111
  • 2606:4700:4700::1001

How to configure Cloudflare DNS service on router

The best way to change your current DNS settings to start using Cloudflare's is to reconfigure your router. Using this approach automatically configures every device in the house (such as desktop, laptop, tablet, phone, game console, and smart TV), instead of setting up each device individually.

To configure your router to use the Cloudflare DNS addresses, do the following:

Important: The instructions to configure may be different on your router before proceeding make sure to check your manufacturer support website for more specific details.

  1. Open your web browser.
  2. Enter the IP address of your router and press Enter.Quick Tip: You can find out this information using the Windows key + R keyboard shortcut, typing cmd, clicking OK, and on Command Prompt run the ipconfig command. The router IP address will be the one that is listed in the Default Gateway field.
  3. Log in using your router username and password as required. (Typically, you'll find this information on a sticker on your router.)
  4. Open the DNS server settings page. Refer to your router manufacturer support website to locate these settings. However, most of the time, these settings can be found in the advanced settings section. Here's the location to get to the DNS settings in some of the most popular home router brands:
    • Linksys: Setup > Basic Setup.
    • ASUS: WAN > Internet Connection.
    • Google Wifi: Settings > Networking & General > Advanced Network > DNS.
    • Netgear: Internet.
    • D-Link: Manual Internet Connection Setup.
  5. In the DNS settings section use these IPv4 addresses:

  1. Save your settings.
  2. Restart your browser.

Once you've completed the steps, restart your computer to start using the new settings.

Alternatively, you can open Command Prompt and run these two commands:

  • ipconfig /flushdns
  • ipconfig /renew

These commands will purge the DNS Resolver cache on your device and request a renewal of the IPv4 settings.

It's worth noting that you don't need to apply the IP version 6 addresses on your router if your network is already using IP version 4. However, if you're required to use the IPv6 addresses, you must enter them in the IPv6 DNS setting page on your router.

  • 2606:4700:4700::1111
  • 2606:4700:4700::1001

How to configure Cloudflare DNS service on Windows 10

Alternatively, if configuring your home router is a little challenging, or you want to use the Cloudflare DNS settings on every network you connect, including public networks (for example, coffee shop and airport), with your laptop or tablet, you can configure the DNS settings on Windows 10, instead of configuring your router.

To configure the Cloudflare DNS settings on Windows 10, do the following:

Important: It's not recommended to use these instructions if you're using a computer at work, because changing these settings could cause connectivity problems and other issues. If you want to change these settings on your work computer, always consult with your IT administrator first.

  1. Open Start.
  2. Search for Control Panel, and click the top result to open the experience.
  3. Click on Network and Internet.
  4. Click on Network and Sharing Center.
  5. Click on Change Adapter Settings.

  1. Right-click the Wi-Fi or Ethernet adapter that you're using to connect to the internet, and select the Properties option.

  1. Select the Internet Protocol Version 4 (TCP/IPv4) option.
  2. Click the Properties button.

  1. Select the Use the following DNS server addresses option.
  2. In the "Preferred DNS server" field, enter this IPv4 address:
  3. In the "Alternative DNS server" field, enter this IPv4 address:
  4. Click OK.

  1. (Optional) If the Internet Protocol Version 6 (TCP/IPv6) stack is enabled in the network adapter properties, select the option.
  2. Click the Properties button.

  1. Select the Use the following DNS server addresses option.
  2. In the "Preferred DNS server" field, enter this IPv6 address:
    • 2606:4700:4700::1111
  3. In the "Alternative DNS server" field, enter this IPv6 address:
    • 2606:4700:4700::1001
  4. Click OK.

  1. Click Close.

After completing the steps, your device will contact the Cloudflare servers to resolve domain names (for example, or

The steps mentioned above are focused on Windows 10, but the instructions will also work on Windows 8.1 and Windows 7.

How to check if you're using the Cloudflare DNS settings

If you want to make sure that you're in fact using the Cloudflare DNS settings, you can use the nslookup tool to find out this information quickly:

  1. Open Start.
  2. Search for cmd, click the top result to open Command Prompt.
  3. Type the following command and press Enter:
    • nslookup

The output of the command should include this result:

  • Default Server:
  • Address:

If you're using the IPv6 addresses, then the output should look like this:

  • Default Server:
  • Address: 2606:4700:4700::1111

If you're configuring your router instead of your computer, the nslookup tool will show the IP address of your router. This is an expected result as it's your router the one that is making the DNS requests on behalf of all the devices connected in the network.

If this is the case, you can verify that the Cloudflare DNS settings are configured correctly using your router's network tools (if applicable), and using the nslookup method to test the settings.

Are you switching to the Cloudflare DNS service? Tell us in the comments.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Mauro Huculak

Mauro Huculak is technical writer for His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

  • I switched and it makes browsing alot faster. One thing id like to note though is that a lot of ms services use ipv6 for supplementary connections for Xbox live voice and such so even though you may not use ipv6 as your primary ip version it would still be a good idea to configure the dns for it with cloudfare's dns.
  • How willing have Cloudflare been to block domains when instructed to by censorship embracing governments?
  • They don't.
  • How do I make this change on my Windows 10 phone?
  • I looked this up and there isn't a way on cell you can change it on your wifi from your router but outside of that there isn't a way.
  • Wow how much was Mobile Nations paid to advertise this "service" for everyone to immediately switch to for reasons of "security and performance" and zero evidence of actual privacy. God damn the sheep are deciding their own fate. Whoever uses this or the google one deserves what's coming to them, no whingy whining later please, thanks.
  • What do you think is coming to them?
  • "Wow how much was Mobile Nations paid to advertise this "service" "
    About as much as we paid your mom last night. PS We want our money back.
  • Seriously Daniel? "About as much as we paid your mom last night.
    PS We want our money back." How thin skinned and unprofessional are you? A user makes a comment about the site and you go on a personal attack against the user and the user's mother? The original comment was not nice, and I understand you likely feel a personal connection to the business. That said, your response was a bit much.
  • He means to say that they did not receive anything. PS We want our money back is just for laughs. Jeez. Y u mad.
  • I'm not mad. I just think a personal insult like that is very unprofessional, and shows a thin skinned response to a comment made about the site. It goes well beyond the typical snark.
  • Covfefe is a borderline troll around here who I wouldn't mind never returning, hence the sarcasm. I rarely respond that harshly to just random comments or legit questions around here ;)
  • This site would be a lot more enjoyable with a hide user feature.
  • The Wardatorial comment section would just be Jason talking to himself 😉
  • Do you happen to have an issue against people who talk to themselves ? : ) , or have you never had to give a speech at an event of any kind or sort.
  • Yeah, something we can look into.
  • get over it, its a joke that makes no insults unless you don't get the joke, oh and covfefe is a troll . its funny either way just not as bad as you believe it to be.
  • Wah wah.
  • So what makes you think that your ISP is any better now that in the US they are legally allowed to sell All information about your browsing history?
  • Tested it. It's not faster than my ISP DNS-Server.
  • Yeah, I need to check DNS Jumper (see my review/tip from awhile back) to see how much quicker/faster it is. Always good to measure these things out.
  • Just curious, CloudFlare is just doing this from the goodness of their heart? kindly share if you know, What truly is in it for CloudFlare.
    I am already paying my ISP (AT&T Giga-Fiber), So, I know what they are getting.
    Last question, my buddy Daniel... Are you using this service at home?
  • Cloudflare has a stable of paid products and global points of presence. The up side to them for this is likely just visibility in getting better known. The load is trivial so it's not like they would have to build out capacity, just use a small amount of excess capacity.
  • I am using this now at home, or at least, trying it out. Seems fine so far, slightly faster, but I always modify my DNS with that Jumper app to find the fastest at the time. As to why Cloudfare is doing this the company focuses on security, etc. for its paid services to companies (we use them too, IIRC), so it's part of their image and brand.
  • Cloudflare can kiss my ass. I don't want to hear them utter a word about security and privacy when they are the ones who declared war on TOR users years ago.
  • Sad you can't get your CP anymore?
  • CloudFlare must have a seriously good PR department judging by all the press they are receiving. In the meantime, a better choice for privacy with equally good performance (for me at least) is Quad9. Anyone interested in a custom DNS owes it to themselves to check it out.
  • Custom DNS gets complicated, for sure. We'll take a look at doing more on the topic/exploring other options. Obviously, the issue is performance/features is relative. OpenDNS is waaaay more popular than Cloudfare, FWIW.
  • So how do you get it to use the TLS?
    "Cloudflare supports DNS over TLS on standard port 853."
  • Not a good idea to change the router/home gateway if you're an ATT UVerse customer.
    Or any of the other providers that use the same technology.
  • This is part of an experiment between Cloudflare and Asia Pacific Network Information Centre according to Stilgherrian a cyber security researcher in a blog post on Zdnet
  • Link to said article:
  • Well, I checked it out in the UK and my ISP, other ISPs and even some US servers provide faster. Security-wise whether Cloudflare is better remains to be seen, we'll have to see it tested first. Speed-wise though, it very much looks like Cloudflare's world wide claims are a bit... aspirational.
  • Hm? IPv4 works fine, but when I try to enter the IPv6 address, my asus router does not let me. I get a "this is not a valid internet address" prompt when I try to apply changes.
  • I am currently using the Cloudflare DNS setting, and I find that web pages do load faster than Google DNS which I was using before changing to Cloudflare. By the way, the instructions provided by Windows Central are comprehensive for the Windows OS and easy to implement.
  • Seems like it worked but when I run nslookup I get "Default Server: UnKnown" instead. The address matches though.
  • Me too, not sure what the problem, triple checked the numbers