Invalid DoH URL for 1.1.1.1 for Families in Developer docs

DoH URLs for security and family DNSes provided on this URL are incorrect
https://developers.cloudflare.com/1.1.1.1/1.1.1.1-for-families/setup-instructions/dns-over-https/

https://security.cloudflare-dns.com/dns-query/
https://family.cloudflare-dns.com/dns-query/

They doesn’t work because of / at the end of URL - server redirects requests to 1.1.1.1 main page.
If I delete / at the end of URL, everything is ok.

1 Like

cloudflared logs:

$ sudo cloudflared proxy-dns --upstream https://security.cloudflare-dns.com/dns-query/
Password:
INFO[0000] Adding DNS upstream                           url="https://security.cloudflare-dns.com/dns-query/"
INFO[0000] Starting metrics server                       addr="127.0.0.1:60328"
INFO[0000] Starting DNS over HTTPS proxy server          addr="dns://localhost:53"
ERRO[0007] failed to connect to an HTTPS backend "https://security.cloudflare-dns.com/dns-query/"  error="returned status code 403"
^C
$ sudo cloudflared proxy-dns --upstream https://security.cloudflare-dns.com/dns-query
INFO[0000] Adding DNS upstream                           url="https://security.cloudflare-dns.com/dns-query"
INFO[0000] Starting metrics server                       addr="127.0.0.1:60340"
INFO[0000] Starting DNS over HTTPS proxy server          addr="dns://localhost:53"
...
Everything is ok
1 Like

No, those work just fine.

curl -H 'accept: application/dns-json' 'https://security.cloudflare-dns.com/dns-query? name=example.com&type=AAAA'

Please read what I wrote carefully.
Without / at the end it works (as in your example).
With / at the end it does not work (as in your documentation).
So curl -H 'accept: application/dns-json' 'https://security.cloudflare-dns.com/dns-query/? name=example.com&type=AAAA' will not work due to / at the end.
As you can see, cloudflared fails too.
So, links in documentation are incorrect (extra / at the end.)

3 Likes

Still not ok, where I may file a bug? :slight_smile:

1 Like