Are you hosting multiple sites on same account? If not, then I would just ask your host to change your main domain to domain2.com, then park domain1.com and set up a redirect for that. That way you don't have to move your files.
If that isn't viable for you, just move your xF install to the folder the addon domain is pointing to and follow Slavik's instructions.