Domain registrars act as a bridge in between you and domain registries (the organizations managing extensions like .com or .org). When you buy a domain, the registrar usually takes treatment of reserving your decided on name and linking it to your website. I am not clear on the final bit https://www.ocloudi.com/advantages-of-migration-from-shared-hosting-to-vps-hosting/