Set up
Last updated May 6, 2026 By default, your devices use a DNS server ↗︎ provided by your Internet service provider (ISP). You can change this to use 1.1.1.1 instead, which gives you faster and more private DNS resolution. Some ISPs and network equipment providers already partner with Cloudflare to offer this.
If your provider does not use Cloudflare, follow the instructions for your device or router below.
<details>
<summary>
Device or router specific guides
</summary>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/android/">Android</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/azure/">Azure</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/gaming-consoles/">Gaming consoles</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/google-cloud/">Google Cloud</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/ios/">iOS</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/linux/">Linux</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/macos/">macOS</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/router/">Router</a>
- <a href="https://developers.cloudflare.com/1.1.1.1/setup/windows/">Windows</a>
</details>
You can also set up 1.1.1.1 for Families for additional protection against malware and adult content on your home network. 1.1.1.1 for Families uses the same privacy commitments as the standard 1.1.1.1 resolver.
1.1.1.1 for Families
1.1.1.1 for Families automatically blocks DNS queries to domains associated with malware, phishing, or (optionally) adult content.
1.1.1.1 for Families has two options:
<details>
<summary>
Block malware
</summary>
Use the following DNS resolvers to block malicious content:
- <code>1.1.1.2</code>
- <code>1.0.0.2</code>
- <code>2606:4700:4700::1112</code>
- <code>2606:4700:4700::1002</code>
</details>
<details>
<summary>
Block malware and adult content
</summary>
Use the following DNS resolvers to block malware and adult content:
- <code>1.1.1.3</code>
- <code>1.0.0.3</code>
- <code>2606:4700:4700::1113</code>
- <code>2606:4700:4700::1003</code>
</details>
When a queried domain is classified as malicious, Cloudflare returns the address 0.0.0.0 instead of the real address. This prevents your device from connecting to the blocked site.
Domain miscategorization
If you are using 1.1.1.1 for Families and a domain is incorrectly blocked or allowed, submit feedback ↗︎ to help improve Cloudflare's categorization. Your submission is anonymous.
Test 1.1.1.1 for Families
After configuring 1.1.1.1 for Families, verify that filtering is working with the following test URLs:
- https://malware.testcategory.com/ ↗︎ — Tests whether known malware domains are blocked.
- https://nudity.testcategory.com/ ↗︎ — Tests whether adult content and malware domains are blocked.
DNS over HTTPS (DoH)
DNS over HTTPS (DoH) encrypts your DNS queries by sending them as HTTPS requests. This prevents anyone between your device and the resolver — such as your ISP or a network attacker — from seeing which domains you look up. For more information, refer to the Learning Center article on DNS encryption ↗︎.
To configure an encrypted DoH connection to 1.1.1.1 for Families, enter one of the following URLs in your DoH-compatible client or router:
<details>
<summary>
Block malware
</summary>
https://security.cloudflare-dns.com/dns-query
</details>
<details>
<summary>
Block malware and adult content
</summary>
https://family.cloudflare-dns.com/dns-query
</details>
DNS over TLS (DoT)
DNS over TLS (DoT) encrypts DNS queries using TLS on a dedicated port (853). Like DoH, it prevents eavesdropping on your DNS traffic. For more information, refer to the Learning Center article on DNS encryption ↗︎.
To configure an encrypted DoT connection to 1.1.1.1 for Families, enter one of the following hostnames in your DoT-compatible client or router:
<details>
<summary>
Block malware
</summary>
security.cloudflare-dns.com
</details>
<details>
<summary>
Block malware and adult content
</summary>
family.cloudflare-dns.com
</details>
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/1.1.1.1/setup/#page","headline":"Set up","description":"Learn how to set up Cloudflare's 1.1.1.1 DNS resolver for enhanced security and privacy. Protect against malware and adult content with easy configuration.","url":"https://developers.cloudflare.com/1.1.1.1/setup/","inLanguage":"en","image":"https://developers.cloudflare.com/1.1.1.1/setup/og.png?v=54100f8fa987d39b","dateModified":"2026-05-06","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["Phishing"]}
description: Learn how to set up Cloudflare's 1.1.1.1 DNS resolver on Android devices. Encrypt DNS queries with DoT or DoH, and enable 1.1.1.1 for Families. title: Android image: https://developers.cloudflare.com/1.1.1.1/setup/android/og.png?v=e430cb1e454bb9d3
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/1.1.1.1/llms.txt
Use this file to discover all available pages before exploring further.
Docs