Domain, URL, hosting, and DNS are the four concepts behind every website. Confuse them and you will end up paying for the wrong service or not knowing why your site isn't showing up. This guide explains them clearly, with practical examples.
What is a domain?
A domain is the unique name that identifies your site on the internet. It is what you type into the browser's address bar: yourbusiness.com, mystore.net, or theblog.org.
Technically, it is an entry in the global DNS that points to an IP address. For the user, it is simply "the address" of a website.
Domains consist of:
- Second-level domain (SLD): the part you choose, for example yourbusiness.
- Extension or TLD: the suffix indicating type or country, such as .com, .org, .net, or .mx.
Domains are registered through an accredited registrar and paid for annually. You do not buy them outright — you renew them each year (or several years in advance).
What is a URL?
A URL (Uniform Resource Locator) is the complete address of a specific page within a website. The domain is just one part of the URL.
Example of a complete URL:
https://www.yourbusiness.com/blog/example-article
Its parts are:
| Part | Example | What it indicates |
|---|---|---|
| Protocol | https:// |
Connection type (secure with SSL) |
| Subdomain | www. |
Domain prefix (optional) |
| Domain | yourbusiness.com |
Registered site name |
| Path | /blog/example-article |
Specific page within the site |
In short: every domain is part of a URL, but not every URL is just a domain. When someone asks for "the URL," they want the exact address of a specific page; when they ask for "the domain," they want the root name of the site.
What is hosting?
Hosting (or web hosting) is the service that provides server space to store your site's files: HTML code, images, the database, PHP scripts, and everything else.
When a user visits your domain, the hosting server delivers those files so the browser can display them.
There are several types of hosting depending on your needs:
- Shared hosting: multiple sites on the same server; affordable, ideal for small to medium projects.
- VPS (Virtual Private Server): dedicated resources within a shared server; more power and control.
- Dedicated server: a physical server entirely for you; maximum performance, higher cost.
- Cloud hosting: resources distributed across multiple servers; scalable with high availability.
The difference between domain and hosting is one of the most common points of confusion: the domain is the address and hosting is the land where you build. You can get both from the same provider or from different ones.
If you are evaluating options for your project, elenlace.com can help you find the most suitable hosting and domain plan for your situation.
What is DNS?
DNS (Domain Name System) is the internet's "phone book." It translates human-readable names like yourbusiness.com into numeric IP addresses like 185.231.12.44 that servers understand.
Without DNS, you would need to memorize or type the IP address of every site you want to visit. DNS handles that translation automatically in milliseconds.
The most important DNS records are:
- A record: points the domain to the hosting server's IPv4 address.
- AAAA record: the same but for IPv6.
- CNAME record: creates an alias from one domain or subdomain to another name.
- MX record: specifies which server handles email for the domain.
- TXT record: stores free-form text, used for verifications and security configurations (SPF, DKIM, DMARC).
When you purchase a domain and hosting, the step that connects them is DNS configuration: you update the domain's nameservers to point to the hosting server.
How the four concepts relate
Think of opening a physical store. The digital equivalent would be:
- Domain: the name and sign of your store (Garcia Hardware).
- Hosting: the space where you set up the store (the rented physical premises).
- DNS: the directory or GPS that tells customers how to get from the sign to the store.
- URL: the full address including the aisle and shelf where the specific product they want is located.
The flow when someone visits your site is:
- The user types your URL into the browser.
- The browser queries the DNS to get the IP of your server.
- The DNS returns the IP associated with your domain.
- The browser connects to the hosting server using that IP.
- The server delivers the site's files and the browser displays them.
All of this happens in under a second. You can dive deeper into each of these steps in our domain and DNS guides section.
Key takeaways
- A domain is the unique name of your site on the internet; it is registered annually.
- A URL is the complete address of a specific page: it includes the protocol, domain, and path.
- Hosting is the server where the site's files are stored; without it, the domain shows nothing.
- DNS is the system that translates the domain name into the server's IP address.
- These four elements work in a chain: domain → DNS → hosting → URL visible to the user.
- You can register your domain and hosting with different providers; you just need to configure the DNS correctly.
Understanding these concepts gives you real control over your digital presence. If you want to get your site up and running without the technical complexity, the team at elenlace.com can handle domain, hosting, and DNS for you from day one.
FAQ
Can I have a domain without hosting?
Yes. You can register a domain and leave it parked (with no content) or point it to an external service like a landing page on another platform. The domain is independent of hosting.
How long does it take for a new domain to work?
Once registered and DNS-configured, propagation can take anywhere from a few minutes to 48 hours. Most cases resolve within 4 hours, though the time varies by provider and geographic region.
Does the domain affect my site's loading speed?
The domain itself does not affect speed. Speed depends primarily on the hosting (server power, geographic location) and the optimization of the site's code and assets.
If I change hosting providers, do I lose my domain?
No. The domain and hosting are independent. When you switch hosting, you simply update the domain's DNS records to point to the new server. Your domain remains untouched.
Useful resources
Other providers and guides worth comparing: