Featured image for security/firewalls/antivirus topics
|

Cloudflare 1.1.1.1 for Families: Free DNS Malware Protection for Your Home Network

Changing one digit in Cloudflare’s familiar 1.1.1.1 DNS address can add a useful layer of protection to a home network. Cloudflare’s free 1.1.1.1 for Families service offers filtered DNS resolvers that block domains classified as malware or phishing. A second filtering profile also blocks adult-content domains.

This is a network-level control: configure the resolver on a compatible router and devices that use the router’s DNS service can benefit without installing a separate security app on every smart TV, game console, phone, or IoT device. It is not a replacement for endpoint security, a firewall, or safe browsing habits. This guide explains the exact addresses, router deployment, verification, troubleshooting, and the limits a systems administrator should understand.

Quick answer: use 1.1.1.2 and 1.0.0.2 (plus the matching IPv6 addresses) to filter known malware and phishing domains. Use 1.1.1.3 and 1.0.0.3 when you also want adult-content filtering. The service is free.

On this page

What is Cloudflare 1.1.1.1 for Families?

Cloudflare operates the public 1.1.1.1 DNS resolver. The standard resolver performs DNS resolution without content filtering. 1.1.1.1 for Families provides alternative resolver addresses that apply category-based filtering to DNS queries.

There are two profiles:

  • Malware protection: blocks domains Cloudflare classifies as associated with malware and phishing.
  • Malware and adult-content protection: applies the malware and phishing filter and additionally blocks domains categorized as adult content.

Cloudflare describes the service as free and provides IPv4, IPv6, DNS-over-HTTPS (DoH), and DNS-over-TLS (DoT) configuration options. The filtering policy is applied by the resolver; no subscription or local agent is required for basic router-level deployment.

How DNS filtering works

DNS (Domain Name System) translates human-readable hostnames such as example.com into IP addresses that clients use to reach servers. When a device needs to resolve a hostname, it sends a query to the DNS resolver configured by the operating system, DHCP, or network administrator.

With Cloudflare Families configured, the process is broadly:

  1. A device asks its configured DNS resolver for the address of a hostname.
  2. Cloudflare evaluates the requested domain against the filtering categories for that resolver profile.
  3. If the domain is classified as blocked, Cloudflare returns a blocking response rather than the normal destination address. Cloudflare’s setup documentation describes a blocked response of 0.0.0.0 for malicious domains.
  4. The client cannot reach the intended host through that ordinary DNS lookup because it has not received the destination’s usable address.

This is DNS-layer enforcement. It does not inspect the page’s full contents, scan downloaded files, or determine whether every URL on a domain is safe. Filtering decisions are based on domain classification, so a newly created malicious domain may not be blocked immediately, and a legitimate domain can occasionally be misclassified.

For a broader explanation of DNS resolution and troubleshooting, see our MikroTik DNS cache and web proxy guide and Wireshark DNS troubleshooting guide.

Official IPv4 and IPv6 DNS addresses

Use the primary and secondary addresses from the same filtering profile. The secondary resolver provides redundancy; it is not a different filtering level.

Profile 1: block malware and phishing

  • IPv4 primary: 1.1.1.2
  • IPv4 secondary: 1.0.0.2
  • IPv6 primary: 2606:4700:4700::1112
  • IPv6 secondary: 2606:4700:4700::1002

Profile 2: block malware, phishing, and adult content

  • IPv4 primary: 1.1.1.3
  • IPv4 secondary: 1.0.0.3
  • IPv6 primary: 2606:4700:4700::1113
  • IPv6 secondary: 2606:4700:4700::1003

Important: do not configure a filtered resolver as primary and an unfiltered resolver such as 1.1.1.1 or 1.0.0.1 as secondary if you expect consistent filtering. A client or router may use either configured resolver, so an unfiltered alternate can undermine the policy. Configure both IPv4 and IPv6 consistently where IPv6 is enabled.

Which filtering profile should you choose?

For a typical home or small-office network, the malware-only profile is a sensible starting point when the goal is to reduce exposure to known malicious and phishing domains without adding adult-content filtering.

Choose the combined profile if you deliberately want DNS-based adult-content filtering as well. Be aware that category filtering is not the same as a complete parental-control solution: it does not provide per-user schedules, application-level controls, detailed activity reports, or a guarantee that every inappropriate page will be blocked.

If you manage a business network, document the resolver policy and communicate the filtering scope to users. DNS filtering can support a security baseline, but it should be part of a broader control set that includes endpoint protection, patching, access control, backups, and firewall policy.

How to configure Cloudflare Families on a router

Router menu names differ by manufacturer and firmware version, but the deployment pattern is similar. Configure the WAN or Internet DNS resolver on the router, then make sure the router advertises itself or the intended resolver to LAN clients through DHCP. If your router has separate IPv4 and IPv6 DNS settings, configure both.

  1. Sign in to the router. Use the router’s management address and an administrator account. Prefer a wired connection if you are changing network settings remotely.
  2. Record the current DNS configuration. Save the existing addresses so you can roll back if the ISP or network has a special requirement.
  3. Open the Internet/WAN DNS settings. Depending on the router, this may be called DNS Server, Internet DNS, WAN DNS, or Name Server.
  4. Enter the matching IPv4 pair. For malware filtering, enter 1.1.1.2 and 1.0.0.2. For malware plus adult-content filtering, enter 1.1.1.3 and 1.0.0.3.
  5. Configure IPv6 DNS. If IPv6 is active, enter the corresponding IPv6 pair from the same profile. Do not assume IPv4 settings also control IPv6.
  6. Check DHCP and LAN DNS settings. Confirm that LAN clients receive the intended resolver through DHCP. Some routers proxy DNS locally; in that design, the router itself must forward queries to Cloudflare Families.
  7. Save and reconnect clients. Apply the configuration, renew DHCP leases or reconnect devices, and clear local DNS caches if necessary.
  8. Test before considering the rollout complete. Use Cloudflare’s test domains and verify the resolver actually used by clients.

Cloudflare maintains a router setup guide. Consult your router vendor’s documentation for the exact menu path. If your router is a MikroTik device, also review our MikroTik router secure-baseline guide and MikroTik DHCP server setup guide before changing DNS and DHCP behavior.

Router DNS versus DHCP-advertised DNS

Some routers have two related but distinct settings: the upstream resolver used by the router, and the DNS server address handed to clients by the DHCP server. If clients send DNS requests to the router’s LAN address, the router must forward those requests to the Cloudflare Families resolver. If DHCP advertises public resolver addresses directly, clients query those addresses themselves.

Check the actual client configuration after deployment. A router setting alone does not prove that every endpoint is using it.

Encrypted DNS: DNS-over-HTTPS and DNS-over-TLS

Traditional DNS queries are commonly sent without transport encryption. DNS-over-HTTPS (DoH) sends DNS messages inside HTTPS; DNS-over-TLS (DoT) uses TLS, commonly on TCP port 853. These protocols protect DNS queries in transit between the client and the resolver, but they do not encrypt all application traffic or hide the destination from every observer.

Cloudflare publishes these Families endpoints:

  • DoH, malware and phishing: https://security.cloudflare-dns.com/dns-query
  • DoH, malware plus adult content: https://family.cloudflare-dns.com/dns-query
  • DoT, malware and phishing: security.cloudflare-dns.com
  • DoT, malware plus adult content: family.cloudflare-dns.com

Use these endpoints only on clients or routers that explicitly support DoH or DoT. For Android’s Private DNS setting, Cloudflare documents the DoT hostnames security.cloudflare-dns.com and family.cloudflare-dns.com. A DoH URL is not interchangeable with an ordinary DNS server IP field.

Encrypted DNS can also affect network enforcement. A device configured with its own encrypted resolver may bypass the DNS server distributed by your router. If centralized filtering is a requirement, define an endpoint policy and consider how your firewall handles direct DNS, DoT, and browser/application DoH. Do not assume that changing WAN DNS automatically forces every device to use it.

See Cloudflare’s setup documentation for current platform-specific instructions.

How to test that filtering works

After configuring the router or endpoint, verify both the DNS path and the filtering behavior. Cloudflare provides test hostnames in its official setup documentation:

  • https://malware.testcategory.com/ — tests the malware category.
  • https://nudity.testcategory.com/ — tests the adult-content category and malware filtering profile.

Run the malware test when using either Families profile. Run the adult-content test when using the combined malware-and-adult-content profile. A successful test should show that the relevant test category is blocked; use Cloudflare’s current documentation if the test page behavior changes.

Also verify the resolver configured on a client. On Windows, run:

ipconfig /all

Inspect the DNS Servers entry for the active adapter. To clear the Windows DNS cache after changing settings, run:

ipconfig /flushdns

On Linux systems using systemd-resolved, inspect the active resolver configuration with:

resolvectl status

These commands show local resolver configuration; they do not, by themselves, prove that a query reached Cloudflare or that the filtering policy was applied. Check the router’s DNS forwarding configuration and test with Cloudflare’s category test domains.

For Windows DNS inspection, our guide to viewing and troubleshooting DNS settings with netsh provides additional context.

Security benefits and limitations

Cloudflare Families is useful because DNS is a shared dependency for many devices. A router-level configuration can cover devices that cannot run conventional endpoint security software, provided they use the configured DNS path. However, DNS filtering has a clearly defined scope.

What it can help with

  • Blocking DNS lookups for domains classified by Cloudflare as malware or phishing.
  • Adding a basic category filter for adult-content domains when the combined profile is selected.
  • Applying a consistent resolver policy to multiple home-network devices when the router and clients are configured correctly.
  • Reducing accidental access to known malicious domains before a connection is established through normal DNS resolution.

What it does not do

  • It is not antivirus software and does not scan files, memory, processes, or downloads.
  • It does not remove malware that is already installed on a device.
  • It cannot guarantee protection from newly registered or unclassified malicious domains.
  • It does not inspect every URL path or page element on an otherwise allowed domain.
  • It may be bypassed by hard-coded IP connections, alternate DNS resolvers, VPNs, proxies, or application/browser DoH, depending on the network design.
  • It is not a complete parental-control system and does not provide per-user time limits or detailed usage reports.

For stronger coverage, combine DNS filtering with operating-system updates, reputable endpoint protection, browser security features, MFA, least-privilege accounts, secure Wi-Fi, backups, and a properly maintained firewall. On a managed network, monitor DNS behavior and document exceptions rather than relying on an assumed router-wide policy.

Troubleshooting common problems

A blocked website still opens

Confirm that the device is using the intended resolver. Check IPv4 and IPv6 separately, inspect DHCP options, and look for browser Secure DNS/DoH, VPN software, security agents, or manually configured DNS on the endpoint. A browser or app using a separate resolver may not follow the router’s DNS configuration.

Some websites stop working unexpectedly

A domain may be incorrectly categorized, or a service may depend on a domain that is blocked. Test from a single client, compare behavior with the standard resolver temporarily, and consult Cloudflare’s domain-miscategorization feedback process. Avoid leaving an unfiltered public resolver configured as a permanent secondary server if consistent filtering is required.

Filtering works on IPv4 but not IPv6

Configure the matching Families IPv6 resolver pair or review whether IPv6 DNS is being supplied by router advertisements or DHCPv6. If IPv6 is enabled but left pointing to another resolver, clients may resolve domains outside the intended filtering path.

DNS settings revert after reconnecting

Your ISP, DHCP client, router firmware, or network-management service may automatically restore DNS settings. Configure the resolver in the component that owns the network configuration and verify again after a reboot or WAN reconnect.

Internet access breaks after the change

Restore the DNS addresses you recorded before making the change. Confirm that the router can reach the resolver, that outbound DNS or encrypted DNS traffic is not blocked by firewall rules, and that no upstream ISP requirement has been overlooked. Change one variable at a time so the cause is identifiable.

Frequently asked questions

Is Cloudflare 1.1.1.1 for Families free?

Yes. Cloudflare documents the Families resolver as a free public DNS service. The filtering profiles do not require a paid subscription.

What is the difference between 1.1.1.1 and 1.1.1.2?

1.1.1.1 is Cloudflare’s standard public resolver and does not apply Families content filtering. 1.1.1.2 is the Families resolver that blocks domains classified as malware and phishing.

What does 1.1.1.3 block?

1.1.1.3 applies the Families profile that blocks malware and phishing domains as well as domains categorized as adult content. Its secondary IPv4 address is 1.0.0.3.

Does configuring DNS on my router protect every device?

It can cover devices that use the DNS resolver distributed by the router or forwarded by the router. Devices with their own DNS configuration, encrypted DNS, VPN, proxy, or hard-coded IP destinations may bypass the policy.

Will Cloudflare Families make my internet faster?

Do not assume a speed increase. DNS lookup latency depends on network path, resolver location, caching, and ISP routing. Families is a filtering feature, not a bandwidth upgrade, and DNS response times can differ from your ISP’s resolver.

Does DNS filtering replace antivirus?

No. It can block some domain lookups before a connection is made, but it does not scan files or detect all threats. Keep endpoint protection and operating-system security controls enabled.

Can I use Cloudflare Families on Android?

Yes. Android 9 and later support Private DNS using DNS-over-TLS. Cloudflare documents security.cloudflare-dns.com for malware filtering and family.cloudflare-dns.com for malware plus adult-content filtering.

Official references and further reading

Final recommendation

Cloudflare 1.1.1.1 for Families is a practical, free DNS filtering layer for home networks. For malware and phishing protection, configure 1.1.1.2 and 1.0.0.2, together with their IPv6 equivalents where applicable. Select the .3 profile only if adult-content filtering is also part of your policy. Verify the resolver path on real clients, account for encrypted DNS and IPv6, and keep endpoint security and router hardening in place.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *