How to redirect one domain to another that has WordPress installed [on hold]

How do I redirect a domain abc.com to xyz.com when xyz.com has WordPress installed? WordPress requires the URL to be XYZ.com so simply changing the DNS of abc.com to point to the IP of the web server won’t work on its own. Thanks