How to change a domain name or cpanel user name through the WHM?
1.Login to the WHM
2.Select the List accounts option
3.Search for the account name for which you want to change the domain name and username.
4.The read mark colour option is for changing the primary domain name and the orange mark colour option is for changing the username in the below screenshot.