Domain is not Hosting
Often the concept of domain is confused with hosting. However, they are different realities.
Hosting of a website is carried out by a specific server for this purpose (web server or HTTP), where the content of that site is stored and that same content is made available to the computers that request it, through a specific communication protocol (the HTTP protocol).
This process is independent from the domain name and access to the content can be carried out simply by indicating this web server's IP address.
As the IP address is difficult to memorise, the domain name system allows a name to be given to this IP address, which is a service provided by a name server.
But the domain name resolution service is not only used to access websites. Its use is as vast as the countless number of services available on the Internet, namely, email, messaging, peer-to-peer, video-diffusion.