# Setting up custom DoT

**URL:** <https://forum.gl-inet.com/t/setting-up-custom-dot/22881>\
**Category:** Router\
**Created:** [July 18, 2022, 2:45pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881 "2022-07-18T14:45:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blobbie01](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/blobbie01/32/9200_2.png) [@Blobbie01](https://forum.gl-inet.com/u/Blobbie01)\
**Post date:** [July 18, 2022, 2:45pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/1 "2022-07-18T14:45:20Z")

</div>

Hey everyone👋

I’ve been trying to setup Cloudflare for Families on my home router. I’d preferably like to do this with DNS over TLS.

 ![image](https://forum-static.gl-inet.com/original/2X/d/d15e1a40cc6d12b7c66163b705b643f9c857293b.png)  
 ![image](https://forum-static.gl-inet.com/original/2X/5/520993cd35bc8156c9697159b159422284103aa7.png)

As you can see in the images above, I’ve edited the default config, and replaced the servers with the family Cloudflare servers.

However, it has no effect. The test website provided by Cloudflare is still unblocked:

 ![image](https://forum-static.gl-inet.com/original/2X/1/13a65133a10c9000f6eeda7603adeaa5bc6f39a4.jpeg)

Hoping someone here can let me know what I’m doing wrong, because I can’t seem to figure it out😄

I’m on the GL-AX1800 running the latest public beta.

---

<div class="post-metadata">

**Author:** ![xize11](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/xize11/32/5340_2.png) [@xize11](https://forum.gl-inet.com/u/xize11)\
**Post date:** [July 18, 2022, 3:24pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/2 "2022-07-18T15:24:11Z")

</div>

first I need to know if the dhcp forwarder has been either set inside the dnsmasq config to 127.0.0.1:5453 you can also check this inside the dhcp settings from luci then you have to use `#` sign instead of `:`.

you could test [dnsleaktest.com](http://dnsleaktest.com) to figure out if you see cloudflare at all or if you see a mixed result.

if that is fine and it shows cloudflare but also a mixed dns server, it could also be that your browser uses its own build in dns, I noticed this alot on chrome based browsers best way what you could do then is creating a port forward on udp port 53 like so:

src zone:  
you could specify lan, or wifi interface

src ip: you leave empty

dst zone: wan or wireguard often its just wan anyway.

dst port 53

redirect ip to: 0.0.0.0 which means your router.

---

<div class="post-metadata">

**Author:** ![Blobbie01](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/blobbie01/32/9200_2.png) [@Blobbie01](https://forum.gl-inet.com/u/Blobbie01)\
**Post date:** [July 18, 2022, 3:45pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/3 "2022-07-18T15:45:22Z")

</div>

The forwarder hasn’t changed, so it’s indeed 127.0.0.1#5453

 ![image](https://forum-static.gl-inet.com/original/2X/0/017b6bd791671491a1ff11d39e6bdc9604421018.jpeg)

Dnsleaktest shows multiple servers, all Cloudflare:

 ![image](https://forum-static.gl-inet.com/original/2X/9/9254840bbf020479e0c3f3ca662b8c0bbd943e33.jpeg)

DNS is overridden for all clients (enabled through GL panel).

---

<div class="post-metadata">

**Author:** ![xize11](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/xize11/32/5340_2.png) [@xize11](https://forum.gl-inet.com/u/xize11)\
**Post date:** [July 18, 2022, 4:47pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/4 "2022-07-18T16:47:35Z")

</div>

From dnsleaktest it looks fine, so it could maybe be two things:

1. the dns server is not flushed you can do this with restarting dnsmasq via `/etc/init.d/dnsmasq restart` and then on windows `ipconfig /flushdns` and on the browser also phones `chrome://net-internals/#dns`

2. it could be that the connection works, but the actual encryption is not, maybe stubby isn’t started?

If you go to luci and check the console log does it say something like transport error or getdnsapi missing?

Possible it could be it is just working and the test page is wrong, that could be verified in what stubby says in the logs, if it makes the tcp handshake without issues it should work.

---

<div class="post-metadata">

**Author:** ![Blobbie01](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/blobbie01/32/9200_2.png) [@Blobbie01](https://forum.gl-inet.com/u/Blobbie01)\
**Post date:** [July 18, 2022, 5:42pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/5 "2022-07-18T17:42:58Z")

</div>

I honestly don’t know what it was, I didn’t see any logs related to Stubby🤷‍♂️

I switched to NextDNS, they have some more customization anyway, so turned out alright for me😄

I restarted stubby multiple times, it didn’t seem to have any effect.

However DNS over HTTPS also seems to be ignored, as [https://1.1.1.1/help](https://1.1.1.1/help) kept showing it was connected over TLS. I tried the same with NextDNS over TLS, and then switched to DoH (cloudflare). It got ignored & kept using the previously set DoT with NextDNS, even after restarting router & clients, flushing dns etc.

Looks like this might be a new issue in the latest beta @alzhao , it seems to persist even after a reset.

---

<div class="post-metadata">

**Author:** ![Blobbie01](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/blobbie01/32/9200_2.png) [@Blobbie01](https://forum.gl-inet.com/u/Blobbie01)\
**Post date:** [July 18, 2022, 5:58pm UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/6 "2022-07-18T17:58:36Z")

</div>

I was able to solve everything by flashing an older backup I had. I must have messed something up along the way😄

Marking as solved, my mistake, DNS working just fine now with.

Thanks for your help @xize11 !🙏

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:18am UTC](https://forum.gl-inet.com/t/setting-up-custom-dot/22881/7 "2025-10-29T04:18:04Z")

</div>


