I need to load my Wordpress website under a different domain apart from my primary domain using a CNAME record. Both domains are belonging to me. I should mention that since some people using this feature as a phishing tool. I added a CNAME record into my second domain's configurations. But site is not loading as expected. It's redirecting to the primary domain as A record does instead of serving the site under the second domain. Following is the sample of my CNAME record. I can't share the exact details any of the websites.
CNAME record
Name: www.secondarydomain.com
Type: CNAME
Value: primarydomain.com
TTL: 5 minutes