"The difference between what you pay for a domain name ($10) and what you sell it for ($6,000,000) is taxable income.
Hilarity ensued."
Huge problem that most startups don't realise from the get-go. IP transfer is a huge issue and it needs to be right from the beginning - that's why seperate holding companies for IP [ala Skype] are typically a good organisational alternative.