[GTALUG] TLDs

Scott Allen mlxxxp at gmail.com
Thu Jul 25 17:01:48 EDT 2024


On Thu, 25 Jul 2024 at 16:38, Scott Allen <mlxxxp at gmail.com> wrote:
>> On Thu, 25 Jul 2024 at 16:27, Scott Allen <mlxxxp at gmail.com> wrote:
> > Doing a grep on whois output for "Registrar:" (perhaps case
> > insensitive) might be fairly reliable.
> Even that doesn't always work. E.g.:
> whois abc.de
> I give up (on using whois, at least).

This is assuming you want something that will work for any TLD. For a
single given TLD, the whois output should be consistent enough that
you could figure out something to determine if a domain is registered
or not.

For instance, for the .ca domain it looks like just checking the first
output line for "Not found:" is sufficient to indicate a domain hasn't
been registered.


--
Scott


More information about the talk mailing list