If I have a domain name (called hotname.com) that was registered in 1998 and someone trademark the word phrase "hot name" today, will they then have the rights to take the domain name from me?
Generally no. If X trademarks a name after Y has registered a domain with that name, then X cannot take it from Y. But there are a few cases where the domain was lost. What happened was Y was not using the domain. But after X created their trademark Y then put a website on the domain intentionally trying to make use of X's trademark.
The only legal precedent I'm aware of for this kind of thing is as kindsvater says, and perhaps in the case that a trademark exists in one jurisdiction, who then decide to enforce the mark globally. Some jurisdictions restrict what you can trademark, of course. For instance, in the UK, I doubt you could trademark content spinning because it's two real widely used words. You could, however, probably trademark conpent spinnting (made up words, which is why chem cos do it all the time).
You could also contest the trademark on the basis of your existing business assuming that their trademark is going to be in the same region as your site.
Since you have had the domain name for years, you are probably the legal owner of that domain name, but it may still depend on the facts of the situation. Are you actively using your domain name for a site? Does the domain name relate to what you do on your site? Is there a 3rd party who could claim the trademark itself? All of these questions and more go into the answer to your question.