does not work

I am trying to implement this

and it seems that the don’t work anymore
Returns 400

Any idea?

Works for me:

curl -kvH 'accept: application/dns-json' ''


Thanks! mmm. Indeed through CURL !

BUT not in my Google Sheets script as in

Or directly in Chrome browser, nothing is returned for me. 400

Not that I’ve ever used it before, but I just followed the instructions from and it worked just fine.

1 Like

WAH! And do you mean that if you call this URL in a browser you ALSO get a return?

On my end, I get nothing.
Am I blocked!? Is there a special DNS setup I need to have on my computer?

I get this
–2021-01-08 16:25:22--
Resolving (…,
Connecting to (||:443… connected.
HTTP request sent, awaiting response… 400 Bad Request
2021-01-08 16:25:22 ERROR 400: Bad Request.

No, but I don’t expect to either. The sample code includes the dns-json bits that should formulate a correct call if you simply copy and paste.

That’s clearly not being executed from Google sheets. So you should fix whatever code is making that request.

Thanks for your help! I was able to make it work. Indeed it was with my function and notthe page that was the culprit.

PS: But I really felt this URL should have worked. What is the FINAL https url that would return the array? Can we call directly?

Thanks again!

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