Hello,
Could you please let's know more details on this requirement like where do you want to change the domain name?
If this is in Exchange/Office 365 email, you can do that if you own the domain name. Let's know the actual requirement so that we can support further
Please mark as "Accept the answer" if the above steps helps you. Your suggestion will help others also !
Regards,
Manu