DNS Record Types
nslookup.io
nslookup.io
Why would anyone pay for an API that performs DNS queries instead of just performing a DNS query?
ps: lovely graphics
Alternatively, if you’re targeted at direct client use, you may want to allow them to control the edns options, like client subnet, themselves.
Sounds like a really thought out business plan.
Yes, you can. [1] Lots of public DNS resolvers have support for it, too. [2]
Example:
fetch('https://cloudflare-dns.com/dns-query?name=example.com&type=A...', { method: 'GET', headers: new Headers({ 'accept': 'application/dns-json' })});
Note that this is the JSON-specific format [3]. DNS over HTTPS itself uses the DNS wireformat [4], so you would have to build a parser for that if you want to integrate it into a web app.
[1] https://developers.google.com/speed/public-dns/docs/doh/json
[2] https://developers.cloudflare.com/1.1.1.1/encrypted-dns/dns-...
Also you have a typo in the list (correct in the graphic) - 's/SVR/SRV/'.