Hacker News new | ask | show | jobs
by a_dabbler 386 days ago
You should consider adding DNS checks prior to WHOIS. Whois is unreliable and you can be quickly blocked, doing a quick SOA DNS request can help reduce your WHOIS queries when the domain definitely exists (no SOA is not enough to confirm domain is unregistered but existing SOA is enough to confirm a domain is registered)
3 comments

WHOIS is actually scheduled for sunset by IANA: https://www.icann.org/en/announcements/details/icann-update-...
I switched out whois with RDAP as the primary.

It now goes RDAP -> DNS check -> whois.

Much faster, too. Thank you again for this!

This is good to know! I'll migrate this over to RDAP
So only do a whois when no SOA exists. That's clever.
Yeah! Excited to have a short circuit.
Good advice!

DNS check -> RDAP seems to be the right way to take this.