#Cloudflare DOH on Brave doesn't work via `dns.json`

3 messages · Page 1 of 1 (latest)

steel bay
#

I have added a policy dns.json to use Cloudflare DNS:

{
  "DnsOverHttpsMode": "secure",
  "DnsOverHttpsTemplates": "https://cloudflare-dns.com/dns-query"
}

While I'm using AdGuard public DNS via resolved.conf

[Resolve]
DNS=94.140.14.14 94.140.15.15 2a10:50c0::ad1:ff 2a10:50c0::ad2:ff
DNSOverTLS=yes
DNSSEC=yes
FallbackDNS=
Cache=no-negative
DNSStubListener=no

Brave will not have network unless I turn on a VPN, in which case it will use the Cloudflare DNS normally? How to fix this?

#

It appears, after using the VPN once, If turn it off and now restart brave browser, it will still have the network connection with Cloudflare DOH. I don't know what's happening and how this strange behavior occur until I turned on the VPN.

I will not mark the issue as resolved for now. Because the main issue is still there. When before using a VPN, when opened brave browser with brave --enable-logging --v=1, I got following errors:

#
222448:222455:1112/113318.453382:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101
[222448:222455:1112/113318.465522:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101
[222448:222455:1112/113318.465773:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101
[222448:222455:1112/113318.478856:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101
[222448:222455:1112/113318.584594:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101
[222448:222455:1112/113318.606208:ERROR:net/socket/ssl_client_socket_impl.cc:916] handshake failed; returned -1, SSL error code 1, net_error -101