Changing main url

I paid to have wp, bp and bbpress installed using name "domain1". I want to change to "domain12"
Psek tells me that both names point to the approriate server and I must adjust the redirection settings. can anyone identify how to do this?