# Using CloudFlare's DNS-Over-TLS

**URL:** <https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813>\
**Category:** Installing and Using OpenWrt\
**Created:** [April 25, 2020, 7:52pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813 "2020-04-25T19:52:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lombus](https://forum.openwrt.org/letter_avatar/lombus/32/6_449c533f586939b6e5f246632a46421f.png) [@Lombus](https://forum.openwrt.org/u/Lombus)\
**Post date:** [April 25, 2020, 7:52pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/1 "2020-04-25T19:52:46Z")

</div>

Hello my friends. I've been trying to setup a DoT on my device using this official guide from CloudFlare:

> **[Privacy-Protecting Portable Router: Adding DNS-Over-TLS support to OpenWRT...](https://blog.cloudflare.com/dns-over-tls-for-openwrt/)**
>
> This blog post explains how you can configure an OpenWRT router to encrypt DNS traffic to Cloudflare Resolver using DNS-over-TLS.

_Device: TP-Link TD-W8970 V1_  
_Version: OpenWRT 19.07.2_

They said to remove `dnsmasq` and install another package:

```
opkg update
opkg install unbound odhcpd unbound-control
opkg remove dnsmasq

```

But those packages are too heavy for my device and I run out of free space, and installation not completed.  
Is there any way to use DoT on my device?

---

<div class="post-metadata">

**Author:** ![AndrewZ](https://forum.openwrt.org/letter_avatar/andrewz/32/6_449c533f586939b6e5f246632a46421f.png) [@AndrewZ](https://forum.openwrt.org/u/AndrewZ)\
**Post date:** [April 25, 2020, 8:06pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/2 "2020-04-25T20:06:52Z")

</div>

do not follow those instructions, just install _stubby_ which acts as a proxy between _dnsmasq_ and _cloudflare_

---

<div class="post-metadata">

**Author:** ![Lombus](https://forum.openwrt.org/letter_avatar/lombus/32/6_449c533f586939b6e5f246632a46421f.png) [@Lombus](https://forum.openwrt.org/u/Lombus)\
**Post date:** [April 27, 2020, 5:46pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/3 "2020-04-27T17:46:29Z")

</div>

Thanks. I just installed `stubby`, which one of those guides should I follow?

[https://openwrt.org/docs/guide-user/services/dns/stubby](https://openwrt.org/docs/guide-user/services/dns/stubby)

or

[https://openwrt.org/docs/guide-user/services/dns/dot\_dnsmasq\_stubby](https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby)

---

<div class="post-metadata">

**Author:** ![AndrewZ](https://forum.openwrt.org/letter_avatar/andrewz/32/6_449c533f586939b6e5f246632a46421f.png) [@AndrewZ](https://forum.openwrt.org/u/AndrewZ)\
**Post date:** [April 27, 2020, 5:50pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/4 "2020-04-27T17:50:43Z")

</div>

I have not used any of them, but the 1st one looks good.

---

<div class="post-metadata">

**Author:** ![Lombus](https://forum.openwrt.org/letter_avatar/lombus/32/6_449c533f586939b6e5f246632a46421f.png) [@Lombus](https://forum.openwrt.org/u/Lombus)\
**Post date:** [April 27, 2020, 6:06pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/5 "2020-04-27T18:06:33Z")

</div>

If I setup this, Can I keep using `adblock`?

---

<div class="post-metadata">

**Author:** ![RavenChan](https://forum.openwrt.org/letter_avatar/ravenchan/32/6_449c533f586939b6e5f246632a46421f.png) [@RavenChan](https://forum.openwrt.org/u/RavenChan)\
**Post date:** [April 27, 2020, 6:06pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/6 "2020-04-27T18:06:44Z")

</div>

I used to use Dnsmasq+stubby.The 1st guide you post is what I used at that time.

---

<div class="post-metadata">

**Author:** ![AndrewZ](https://forum.openwrt.org/letter_avatar/andrewz/32/6_449c533f586939b6e5f246632a46421f.png) [@AndrewZ](https://forum.openwrt.org/u/AndrewZ)\
**Post date:** [April 27, 2020, 6:11pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/7 "2020-04-27T18:11:28Z")

</div>

No idea, sorry, never used it. Standalone Pi-hole is my best friend 🙂

---

<div class="post-metadata">

**Author:** ![Lombus](https://forum.openwrt.org/letter_avatar/lombus/32/6_449c533f586939b6e5f246632a46421f.png) [@Lombus](https://forum.openwrt.org/u/Lombus)\
**Post date:** [April 27, 2020, 11:05pm UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/8 "2020-04-27T23:05:57Z")

</div>

Is there a list of DNS Servers that I can use with `stubby`?

---

<div class="post-metadata">

**Author:** ![AndrewZ](https://forum.openwrt.org/letter_avatar/andrewz/32/6_449c533f586939b6e5f246632a46421f.png) [@AndrewZ](https://forum.openwrt.org/u/AndrewZ)\
**Post date:** [April 28, 2020, 7:07am UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/9 "2020-04-28T07:07:36Z")

</div>

Please refer to Stubby README that was mentioned in the guide you found.

> <https://github.com/openwrt/packages/blob/master/net/stubby/files/README.md#upstream-resolvers>

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [May 8, 2020, 7:07am UTC](https://forum.openwrt.org/t/using-cloudflares-dns-over-tls/61813/10 "2020-05-08T07:07:37Z")

</div>

Closed on May 8, 2020, 7:07am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
