fastreplies hit on your issue. If you want to do WHOIS lookups on that much data, you'll either need to be a domain registrar or a reseller. This avoids abuse of WHOIS for things such as unlimited lookups (why would you want this, anyway?) and email address harvesting.