DNS over HTTPS failed to verify certificate

What is the name of the domain?

1.1.1.1

What is the error message?

failed to connect to an HTTPS backend “https://1.1.1.1/dns-query” error=“failed to perform an https request: Post "https://1.1.1.1/dns-query\” tls: failed to verify certificate: x509: certificate is valid for 1.0.0.1, 1.1.1.1, 162.159.36.1, 162.159.46.1, 2606:4700:4700::1001, not 1.1.1.1"

What is the issue you’re encountering

DNS over HTTPS failed to verify certificate

What steps have you taken to resolve the issue?

connect cloudflared as proxy-dns --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query

What feature, service or problem is this related to?

I don’t know

In Malaysia by chance? Your government has recently decided to block requests to Cloudflare’s public DNS resolvers along with Google’s.

1 Like

Although this error says it failed to validate for a host name listed in the list of hosts. So if not located in a country blocking I’d make sure the libraries you are using are up to date.

1 Like

With one.one.one.one, it partially works (except that it switched to ipv6 and started getting errors). Can’t it work by ip?
I use latest version that working on my system (2023.10).