top | item 41717317

Show HN: Using Cloudflare 1.1.1.1 DNS over HTTPS API to bulk search domain TLDs

11 points| fayazara | 1 year ago |supersaas.dev

I found out Cloudflare has a DNS over HTTPS api via 1.1.1.1 resolver, figured I'd make a small tool out of it, as somene who keeps checking domain names for side projects which I never build, this kinda helps me look for something.

It's not fully accurate, because it returns unavailable even for parked pages, which technically are available, but works for me.

It just checks for A records via this endpoint https://cloudflare-dns.com/dns-query?name=${domain}&type=A

Just make sure to pass this header - "application/dns-json"

4 comments

order

Airyisland|1 year ago

I previously also made a domain name availability checking tool, but it only used DNS queries as first step. For more accurate results, it still needs to rely on WHOIS. https://query.domains

simjnd|1 year ago

I typed "test.io" in the input box and it checked for "test.io.org", "test.io.com" and even "test.io.io" but not "test.io".

fayazara|1 year ago

Ah, you just need to enter the domain name, I've hard-coded the tlds to check. I'll add .io

stets|1 year ago

Cool but...it doesn't work, like pizza returns pizza.org and pizza.net as free.