/*If the domain is parked, then there will probably be thousands of domains on the same IP address. If a domain is on shared hosting, then I would expect at most a few hundred.*/
I did not understand, "thousands of domains" where? You mean if I use "gethostbyaddr" I will get thousand of domains?
But even if I determine that this is a host how do I know that this is parked or a regular site?