Closed gnarea closed 3 years ago
I'm looking into this. In the meantime, this works for me:
const gDOH = new dohdec.DNSoverHTTPS({
url: 'https://dns.google/dns-query',
preferPost: false
});
const gResult = await gDOH.lookup({
name: 'example.com',
json: false
});
@gnarea: good catch, great but report. Thank you.
Thanks @hildjj! Much appreciated
Google is refusing the request with an HTTP 415 because the request has the wrong content type.
Here's how to reproduce it:
https://runkit.com/gnarea/5fe388a32aabda001a46f76e