
25 Jul
2024
25 Jul
'24
9:01 p.m.
On Thu, 25 Jul 2024 at 16:38, Scott Allen <mlxxxp@gmail.com> wrote:
On Thu, 25 Jul 2024 at 16:27, Scott Allen <mlxxxp@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