Change domain name to one purchased from Hostgator


I am running a website on a free plan and the preview url is something like {my custom name} but I want to change it to a domain name I purchased from Hostgator.
How do I achieve this please?


Follow this guide:

Once you make this change point your name servers to &