A CNAME record creates an alias that points one domain name to another. It is commonly used to map subdomains like www to your root domain.
Steps
Login to iPanel. From the sidebar, click Domains > Domain portfolio and then click on Manage.

In the second side bar click on DNS Records.

Click Add Record

In the Type dropdown, select CNAME. In the Name field, enter the alias subdomain (e.g., www or mail). In the Target field, enter the target domain name (e.g., example.com). Set the TTL value or leave the default. Click Save to create the CNAME record.

Tip: A CNAME record cannot be set on the root domain (@). Use an A record for the root domain instead.