[GTALUG] TLDs

David Mason dmason at torontomu.ca
Thu Jul 25 20:39:40 EDT 2024


Thanks,

      whois -cca $x | grep -q '^Not found:' && echo $x

works well.... at least until the whois connect starts timing out.

../Dave

On Thu, 25 Jul 2024 at 17:02, Scott Allen <mlxxxp at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20240725/177ac8ff/attachment.html>


More information about the talk mailing list