<div dir="auto">Wouldn’t checking for DNS NS record existence be a much easier way?</div><div dir="auto"><br></div><div dir="auto">Not all TLDs have Whois, but everyone uses DNS</div><div dir="auto"><br></div><div dir="auto">-nick </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2024 at 17:02 Scott Allen via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On Thu, 25 Jul 2024 at 16:38, Scott Allen <<a href="mailto:mlxxxp@gmail.com" target="_blank">mlxxxp@gmail.com</a>> wrote:<br>
>> On Thu, 25 Jul 2024 at 16:27, Scott Allen <<a href="mailto:mlxxxp@gmail.com" target="_blank">mlxxxp@gmail.com</a>> wrote:<br>
> > Doing a grep on whois output for "Registrar:" (perhaps case<br>
> > insensitive) might be fairly reliable.<br>
> Even that doesn't always work. E.g.:<br>
> whois <a href="http://abc.de" rel="noreferrer" target="_blank">abc.de</a><br>
> I give up (on using whois, at least).<br>
<br>
This is assuming you want something that will work for any TLD. For a<br>
single given TLD, the whois output should be consistent enough that<br>
you could figure out something to determine if a domain is registered<br>
or not.<br>
<br>
For instance, for the .ca domain it looks like just checking the first<br>
output line for "Not found:" is sufficient to indicate a domain hasn't<br>
been registered.<br>
<br>
<br>
--<br>
Scott<br>
---<br>
Post to this mailing list <a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
Unsubscribe from this mailing list <a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/listinfo/talk</a><br>
</blockquote></div></div>