News for hackers. Stuff that matters.
Re:Show HN: Domain Name Search with AI by ShakataGaNai on Tuesday December 06, 2022 @01:31PM (#33884803)
You could just do WHOIS queries instead of API. That should be relatively accurate. EX https://pypi.org/project/python-whois/

You don't need to actually care about what it says, just if there is a record returned or not.

Re:Show HN: Domain Name Search with AI by Sophira on Tuesday December 06, 2022 @04:05PM (#33887018)
Pretty much all whois providers forbid this. For example, in a whois response for a .com domain, the output includes this:

> TERMS OF USE: You are not authorized to access or query our Whois database through the use of electronic processes that are high-volume and automated except as reasonably necessary to register domain names or modify existing registrations...

Since they aren't registering domain names or modifying existing registrations, their use would be prohibited by these terms of use.

Re:Show HN: Domain Name Search with AI by ShakataGaNai on Tuesday December 06, 2022 @09:07PM (#33889879)
You are probably right. But someone could argue semantics.

The project is for the express purpose of registering domain names. And the project only does queries as needed to verify domain ownership - falling under "reasonably necessary".

IANAL so my opinion means very little, but it seems like the TOS are targeted towards people who want to abuse the system for doing things like mass data collection, spamming, and other "bad behaviors". Not someone who wants to make sure domains are available for registration.

After all, how do the big players do it? Simply downloading the list of all valid domains even once a day would not be sufficient.