Hi ,
CNAME record only points your domain or subdomain to the IP address of the destination hostname, it will not redirect anything.
Scenario - I have domain with name amit.com, If I enter mail.amit.com on browser, It should redirect to office.com.
In your scenario, you need to set website redirection. You can configuring website redirection in IIS.
Since IIS is currently not supported in the Q&A forums, if you want to know more details about website redirection ,you can ask it in IIS forum:
Best Regards,
Candy
--------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.