The attached class can do a DNS lookup for you. However that's not the same as a WhoIs lookup, since you can have registered a domain name without having any DNS records for it. But it atleast allows you to eliminate many domain names since all URLs that has a DNS record is of course registered domains.