Show HN: Using Cloudflare 1.1.1.1 DNS over HTTPS API to bulk search domain TLDs
supersaas.devI 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"
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
Cool but...it doesn't work, like pizza returns pizza.org and pizza.net as free.
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".
Ah, you just need to enter the domain name, I've hard-coded the tlds to check. I'll add .io