What is a domain name?
A domain name is your website's address on the internet, like yourbusiness.com, and usually your email address too.
You never buy it outright. You rent it a year at a time from a registrar, and whoever is named as the registrant controls where it points, who can renew it and whether it can be moved.
The domain and the website are separate things. The domain is the address, the hosting is the building and the domain's settings tell the world which building to go to.
That is why you can change hosts or rebuild the site and keep the same address, as long as the domain is yours.
The registrar holds the registration; the DNS host answers lookups for it, and the two are often the same company but need not be. Nameserver records at the registrar say which DNS host is authoritative. That DNS zone then carries the A or CNAME records for the website, MX records for email and TXT records for SPF, DKIM and verification for tools like Search Console.
At handover, check the registrant contact in RDAP rather than trusting the invoice, since privacy services hide WHOIS details. Turn on auto-renew with a valid card and keep the registrar lock on. Transfers need the lock released and an authorisation code, and most registrars block a transfer for 60 days after registration or a previous transfer. Lower the TTL a day before moving records, so a host change propagates in minutes.
example.com. A 203.0.113.10
www.example.com. CNAME example.com.
example.com. MX 10 mail.example.com.