Connecting domain to your hosting package, we need to do two things.
1. Add domain using “Addon domain” option of cPanel.
Go to your cPanel and search for “addon” and “Addon Domain” option will be visible like the bellow image. You need to click on that.
2. At this point a form like this will poup and you just need to input domain name here as for example: emon.com. Here you just need to input domain name only. The rest of fields will have automatically be generated. Now click on “Add Domain”.
So, you are done now. Just go to your public_html folder and you will see that a new folder has been created named emon.com. This is the hosting created for your specific domain.
But in case if your client purchased hosting form hostgator but purchased domain from godaddy or anywhere else. Then you need to login to that domain account and point name server of domains to :
cns117.hostgator.com and cns118.hostgator.com
By doing this no matter from where have you purchased your domain but it will be integrated with hostgator. Please also note that there is propagation period. And Propagation time can vary depending on the geographical location. Normally, the name servers takes 0-24 hours and is known to take up to 48 hours maximum to go into full effect. Once the propagation is done you can work with your domain.
If this article is helpful or do you need any assistance, please make comment in the comment box and I will try to reply you as soon as I can.