Cloudflare-dns.com/dns-query does not work #2

Hello,

The request to

https://cloudflare-dns.com/dns-query?name=google.com&type=A

returns 400 Error

HTTP/1.1 400 Bad Request
Server: Cloudflare
Date: Sat, 05 Nov 2022 14:57:22 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
CF-RAY: 765671022ec5164b-DME

Fix pls

Seems to work just fine, you are probably not sending the correct request.

I used code from https://developers.cloudflare.com/1.1.1.1/other-ways-to-use-1.1.1.1/dns-in-google-sheets/

It doesnt work right now, you should fix code to make correct request

As I mentioned yesterday already, it does work.

$ curl -i 'https://cloudflare-dns.com/dns-query?name=google.com&type=A' -H 'Accept: application/dns-json'
HTTP/1.1 200 OK

There’ll be an issue with your code and you need to debug that.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.