Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. AdGuard Home
  3. Support for DoT (DNS-over-tls)

Support for DoT (DNS-over-tls)

Scheduled Pinned Locked Moved AdGuard Home
18 Posts 6 Posters 3.0k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      G Offline
      guyds
      wrote on last edited by
      #1

      According to this thread DoT support was added in v1.2.0 of the AdGuard package (with Cloudron 6.2).

      The Cloudron package documentation however still mentions that DoT is "not yet supported"

      Therefore I decided to just try it out and after some fiddling with OpenWRT and stubby in particular I was able to get DoT working.

      So I guess Cloudron's AdGuard documentation can use some extra love regarding DNS configuration 😉

      girishG 1 Reply Last reply
      2
      • G guyds

        According to this thread DoT support was added in v1.2.0 of the AdGuard package (with Cloudron 6.2).

        The Cloudron package documentation however still mentions that DoT is "not yet supported"

        Therefore I decided to just try it out and after some fiddling with OpenWRT and stubby in particular I was able to get DoT working.

        So I guess Cloudron's AdGuard documentation can use some extra love regarding DNS configuration 😉

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @guyds good catch, indeed DoT is supported for a while now. I use it everyday on Android. Fixed - https://docs.cloudron.io/apps/adguard-home/#dot .

        G ei8fdbE 2 Replies Last reply
        4
        • girishG girish

          @guyds good catch, indeed DoT is supported for a while now. I use it everyday on Android. Fixed - https://docs.cloudron.io/apps/adguard-home/#dot .

          G Offline
          G Offline
          guyds
          wrote on last edited by
          #3

          @girish thanks for updating the docs.

          On my Android phone (Android 10) I can't get it working for the moment, I get "unable to connect".
          But it's definitely an issue on my end since I have it working on my router.
          Anyway, it's not a big deal since my phone is behind my router most of the time.

          1 Reply Last reply
          0
          • girishG girish

            @guyds good catch, indeed DoT is supported for a while now. I use it everyday on Android. Fixed - https://docs.cloudron.io/apps/adguard-home/#dot .

            ei8fdbE Offline
            ei8fdbE Offline
            ei8fdb
            wrote on last edited by
            #4

            @girish said in Support for DoT (DNS-over-tls):

            indeed DoT is supported for a while now. I use it everyday on Android.

            @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

            P girishG 2 Replies Last reply
            1
            • ei8fdbE ei8fdb

              @girish said in Support for DoT (DNS-over-tls):

              indeed DoT is supported for a while now. I use it everyday on Android.

              @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

              P Offline
              P Offline
              panthrosrevenge
              wrote on last edited by
              #5

              @ei8fdb In the latest release of Android there is an option to specify a private DNS resolver. If your device does not have that option available, the Adguard app acts as a VPN and can provide secure DNS lookups

              ei8fdbE 1 Reply Last reply
              1
              • P panthrosrevenge

                @ei8fdb In the latest release of Android there is an option to specify a private DNS resolver. If your device does not have that option available, the Adguard app acts as a VPN and can provide secure DNS lookups

                ei8fdbE Offline
                ei8fdbE Offline
                ei8fdb
                wrote on last edited by
                #6

                @panthrosrevenge said in Support for DoT (DNS-over-tls):

                In the latest release of Android there is an option to specify a private DNS resolver.

                There is an option but when I try the domain name of my adguard server it won't accept it. Neither the IP I am trying.

                If your device does not have that option available, the Adguard app acts as a VPN and can provide secure DNS lookups

                I use Firefox which doesn't seem to be supported by the app yet.

                P 1 Reply Last reply
                0
                • ei8fdbE ei8fdb

                  @panthrosrevenge said in Support for DoT (DNS-over-tls):

                  In the latest release of Android there is an option to specify a private DNS resolver.

                  There is an option but when I try the domain name of my adguard server it won't accept it. Neither the IP I am trying.

                  If your device does not have that option available, the Adguard app acts as a VPN and can provide secure DNS lookups

                  I use Firefox which doesn't seem to be supported by the app yet.

                  P Offline
                  P Offline
                  panthrosrevenge
                  wrote on last edited by
                  #7

                  @ei8fdb Firefox does take some extra configuration. You have to install a CA cert into the android store via the Adguard app, enable secret options on Firefox app (go to about Firefox and tap logo 5 times), enable use of third party certificates.

                  For DoT on the Adguard Home side check encryption settings to configure domain names and certificates.

                  1 Reply Last reply
                  1
                  • ei8fdbE ei8fdb

                    @girish said in Support for DoT (DNS-over-tls):

                    indeed DoT is supported for a while now. I use it everyday on Android.

                    @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    @ei8fdb said in Support for DoT (DNS-over-tls):

                    @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

                    So, all I had to do was Settings -> Network & Internet -> Advanced -> Private DNS. There in the'Private DNS provider hostname, I just enter my AdGuard installation hostname like adguard.domain.com . That's pretty much it. Note that you cannot put an IP address here since Android requires the cert name and the hostname to match.

                    For the above to work:

                    • In Cloudron dashboard -> Adguard -> Location section. Do you see DNS over TLS (DoT) Port enabled ?

                      ae54f23a-c98e-408b-b1b4-1994c3eb94cd-image.png

                    • If you are on a home sever, the firewall needs to port forward the above port (853 by default) to the Cloudron VM.

                    DanTheManD ei8fdbE 2 Replies Last reply
                    1
                    • girishG girish

                      @ei8fdb said in Support for DoT (DNS-over-tls):

                      @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

                      So, all I had to do was Settings -> Network & Internet -> Advanced -> Private DNS. There in the'Private DNS provider hostname, I just enter my AdGuard installation hostname like adguard.domain.com . That's pretty much it. Note that you cannot put an IP address here since Android requires the cert name and the hostname to match.

                      For the above to work:

                      • In Cloudron dashboard -> Adguard -> Location section. Do you see DNS over TLS (DoT) Port enabled ?

                        ae54f23a-c98e-408b-b1b4-1994c3eb94cd-image.png

                      • If you are on a home sever, the firewall needs to port forward the above port (853 by default) to the Cloudron VM.

                      DanTheManD Offline
                      DanTheManD Offline
                      DanTheMan
                      wrote on last edited by DanTheMan
                      #9

                      @girish Thanks Girish for your clear explanation.
                      One question from my side.
                      Do you restrict source ip addresses to port:853 in your firewall, from the outside in? Or do you restrict ip addresses in AdGuard?
                      For security reasons......

                      Also does port:53 have to opened up as well in the firewall for this to work? Or only port:853?

                      girishG 1 Reply Last reply
                      0
                      • DanTheManD DanTheMan

                        @girish Thanks Girish for your clear explanation.
                        One question from my side.
                        Do you restrict source ip addresses to port:853 in your firewall, from the outside in? Or do you restrict ip addresses in AdGuard?
                        For security reasons......

                        Also does port:53 have to opened up as well in the firewall for this to work? Or only port:853?

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        @DanTheMan said in Support for DoT (DNS-over-tls):

                        Do you restrict source ip addresses to port:853 in your firewall, from the outside in? Or do you restrict ip addresses in AdGuard?

                        It's best to restrict source IP in the firewall, if this is possible in your situation. To keep the IP range flexible, you can geo lock the IP range to your region. This does still make it slightly vulnerable. My router (synology) supports geolocking built-in.

                        For security reasons......
                        Also does port:53 have to opened up as well in the firewall for this to work? Or only port:853?

                        Only port 853 is needed.

                        Port 53 is needed if you use it as a DNS server, which AFAIK Android does not support setting anymore!.

                        K 1 Reply Last reply
                        1
                        • girishG girish

                          @ei8fdb said in Support for DoT (DNS-over-tls):

                          @girish Do you have any advice on setting this up on Android devices? I've been trying but no luck yet. Thanks.

                          So, all I had to do was Settings -> Network & Internet -> Advanced -> Private DNS. There in the'Private DNS provider hostname, I just enter my AdGuard installation hostname like adguard.domain.com . That's pretty much it. Note that you cannot put an IP address here since Android requires the cert name and the hostname to match.

                          For the above to work:

                          • In Cloudron dashboard -> Adguard -> Location section. Do you see DNS over TLS (DoT) Port enabled ?

                            ae54f23a-c98e-408b-b1b4-1994c3eb94cd-image.png

                          • If you are on a home sever, the firewall needs to port forward the above port (853 by default) to the Cloudron VM.

                          ei8fdbE Offline
                          ei8fdbE Offline
                          ei8fdb
                          wrote on last edited by
                          #11

                          @girish said in Support for DoT (DNS-over-tls):

                          If you are on a home sever, the firewall needs to port forward the above port (853 by default) to the Cloudron VM.

                          Aha! This is probably the reason it's not working. I wasn't aware of that setting. But now I do see it (and its enabled).

                          I'll forward that port in my firewall. Thanks @girish

                          1 Reply Last reply
                          1
                          • girishG girish

                            @DanTheMan said in Support for DoT (DNS-over-tls):

                            Do you restrict source ip addresses to port:853 in your firewall, from the outside in? Or do you restrict ip addresses in AdGuard?

                            It's best to restrict source IP in the firewall, if this is possible in your situation. To keep the IP range flexible, you can geo lock the IP range to your region. This does still make it slightly vulnerable. My router (synology) supports geolocking built-in.

                            For security reasons......
                            Also does port:53 have to opened up as well in the firewall for this to work? Or only port:853?

                            Only port 853 is needed.

                            Port 53 is needed if you use it as a DNS server, which AFAIK Android does not support setting anymore!.

                            K Offline
                            K Offline
                            khadanja
                            wrote on last edited by khadanja
                            #12

                            @girish I'm having the same issue. My Cloudron instance is in the cloud. How to forward port 853 or open?
                            Also I see this in AdGuard Encryption settings and logs below.
                            bf810372-b9cc-4379-9831-2ed393d12d9b-image.png
                            Jul 06 15:37:48 2022/07/06 03:37:48.610611 [error] handling tcp: reading msg: reading len: remote error: tls: unknown certificate authority

                            girishG 1 Reply Last reply
                            0
                            • K khadanja

                              @girish I'm having the same issue. My Cloudron instance is in the cloud. How to forward port 853 or open?
                              Also I see this in AdGuard Encryption settings and logs below.
                              bf810372-b9cc-4379-9831-2ed393d12d9b-image.png
                              Jul 06 15:37:48 2022/07/06 03:37:48.610611 [error] handling tcp: reading msg: reading len: remote error: tls: unknown certificate authority

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #13

                              @khadanja said in Support for DoT (DNS-over-tls):

                              @girish I'm having the same issue. My Cloudron instance is in the cloud. How to forward port 853 or open?

                              This is automatically opened on the server itself. Do you have a Cloud firewall or some security group in front of the server?

                              It seems the cert is self-signed, are your certs OK on the browser?

                              K 1 Reply Last reply
                              0
                              • girishG girish

                                @khadanja said in Support for DoT (DNS-over-tls):

                                @girish I'm having the same issue. My Cloudron instance is in the cloud. How to forward port 853 or open?

                                This is automatically opened on the server itself. Do you have a Cloud firewall or some security group in front of the server?

                                It seems the cert is self-signed, are your certs OK on the browser?

                                K Offline
                                K Offline
                                khadanja
                                wrote on last edited by khadanja
                                #14

                                @girish @girish Issue was DNS proxy option enabled in Cloudflare. Works if I set it to DNS only. Is there any way of making it work with proxy option enabled? I can access the admin interface with Cloudflare proxy enabled but Private DNS doesn’t work on devices.

                                girishG 1 Reply Last reply
                                0
                                • K khadanja

                                  @girish @girish Issue was DNS proxy option enabled in Cloudflare. Works if I set it to DNS only. Is there any way of making it work with proxy option enabled? I can access the admin interface with Cloudflare proxy enabled but Private DNS doesn’t work on devices.

                                  girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #15

                                  @khadanja It won't work with cloudflare proxying since cloudflare only proxies http and https.

                                  K 2 Replies Last reply
                                  1
                                  • girishG girish

                                    @khadanja It won't work with cloudflare proxying since cloudflare only proxies http and https.

                                    K Offline
                                    K Offline
                                    khadanja
                                    wrote on last edited by
                                    #16

                                    @girish Thanks As a workaround using DoH works with proxy enabled on Android rising Intra app and on iPhone using config profile but looks like Private DNS only supports tls.

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @khadanja It won't work with cloudflare proxying since cloudflare only proxies http and https.

                                      K Offline
                                      K Offline
                                      khadanja
                                      wrote on last edited by
                                      #17

                                      @girish OpenVPN also doesn’t work with proxying. At the moment I have only AdGuard and OpenVPN installed and DNS server in OpenVPN is set to adguard’s private IP. Works without Cloudflare proxying but issues with proxy turned on.

                                      girishG 1 Reply Last reply
                                      0
                                      • K khadanja

                                        @girish OpenVPN also doesn’t work with proxying. At the moment I have only AdGuard and OpenVPN installed and DNS server in OpenVPN is set to adguard’s private IP. Works without Cloudflare proxying but issues with proxy turned on.

                                        girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #18

                                        @khadanja Indeed, OpenVPN uses a custom port and does not run over http(s)

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search