Web development 10 min read
Domain name, DNS, hosting and e-mail: who does what
Registrar, DNS, web host, e-mail provider: what each one does, how a visitor actually reaches your site, the DNS records worth knowing and what your business must own in its own name.
On this page
- Domain name, DNS, hosting and e-mail: four roles
- How a visitor reaches your site, step by step
- The DNS records you will actually meet
- SPF, DKIM and DMARC: proof that your e-mail is really yours
- What your business must own in its own name
- Renewals, expiry and transfers
- Professional e-mail: worth it for a small business
- Where we can help
- Frequently asked questions
Your website and your e-mail rely on four services that are often confused: the domain name, DNS, hosting and the e-mail provider. When everything works, nobody thinks about them. When a renewal is missed, a provider disappears or a former contractor holds the only password, the site and the mailboxes can stop on the same day. This guide explains in plain language who does what, how a visitor actually reaches your site, which DNS records you will meet, and which accounts your business must own in its own name.
Domain name, DNS, hosting and e-mail: four roles
These four roles can be held by four different companies or by a single one. A registrar often sells hosting and e-mail too, and a web agency may manage everything for you. What matters is knowing where each piece lives.
Service | What it does | If it fails or expires |
|---|---|---|
Domain name (registrar) | Rents you the name (for example a .fr or a .com) for one or more years and records you as its holder | Site and e-mail stop; after a grace period, someone else can register the name |
DNS (DNS host) | Publishes the “zone”: the records that say where the site and the e-mail live | The name points nowhere: site and e-mail unreachable |
Web hosting | Stores the site’s files and database on a server and answers visitors | Error page or very slow site; data at risk without backups |
E-mail provider | Hosts your mailboxes and sends your messages | Messages bounce or land in spam |
The domain name is the foundation: hosting or e-mail can be changed in an afternoon, but a lost domain name means a new address, reprinted business cards and lost search rankings.
How a visitor reaches your site, step by step
Computers connect to each other with numeric IP addresses, not names. DNS (Domain Name System) is the directory that translates www.example.fr into an address such as 192.0.2.10. Here is what happens, in a fraction of a second, when someone types your address:
The browser checks whether it already knows the answer. If not, it asks a DNS resolver, usually run by the internet provider or a public service.
If the resolver has no fresh answer in its cache, it asks the root servers, which point it to the servers in charge of .fr (run by Afnic, the French registry).
The .fr servers answer with the name servers of your domain: the servers of your DNS host.
Your DNS host gives the A record (IPv4 address) or AAAA record (IPv6 address) of the site.
The resolver returns the address to the browser and keeps it in cache for the duration set in the record, the TTL (time to live).
The browser connects to the web host at that address, over HTTPS, and receives the page.
This explains the famous “DNS propagation”. Nothing is actually propagated: when you change a record, resolvers that cached the old value keep using it until its TTL expires. With a TTL of one hour, most visitors see the change within the hour; with a TTL of one day, some will see the old server until the next day. That is why a good provider lowers the TTL a day or two before a migration, then raises it again afterwards.
The DNS records you will actually meet
A DNS zone contains a few dozen lines at most for a small business. These are the ones that matter:
Record | What it does | Typical use |
|---|---|---|
A | Gives the IPv4 address of a name | example.fr → the web server |
AAAA | Gives the IPv6 address of a name | Same, for IPv6 visitors |
CNAME | Makes a name an alias of another name | www.example.fr → example.fr, or a subdomain pointed to an online service |
MX | Says which servers receive e-mail for the domain, with a priority (the lowest number is tried first) | Your e-mail provider’s servers |
TXT | Free text read by other services | SPF, DKIM and DMARC, ownership checks (Google Search Console, for example) |
NS | Says which servers hold the zone | Set at the registrar when you choose a DNS host |
Two rules avoid most mistakes. A CNAME cannot coexist with other records on the same name, so it is not used on the bare domain (example.fr) but on subdomains such as www; some DNS hosts offer an equivalent called ALIAS or “CNAME flattening” for the bare domain. And an MX record points to a server name, never directly to an IP address.
Here is what a simple zone looks like, with documentation addresses:
example.fr. 3600 IN A 192.0.2.10
example.fr. 3600 IN AAAA 2001:db8::10
www.example.fr. 3600 IN CNAME example.fr.
example.fr. 3600 IN MX 10 mx1.mail-provider.example.
example.fr. 3600 IN MX 20 mx2.mail-provider.example.
example.fr. 3600 IN TXT "v=spf1 include:_spf.mail-provider.example ~all"
s1._domainkey.example.fr. 3600 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq..."
_dmarc.example.fr. 3600 IN TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.fr"
SPF, DKIM and DMARC: proof that your e-mail is really yours
Anyone can write your address in the “From” field of a message. These three TXT records let receiving servers check that a message really comes from you:
SPF lists the servers allowed to send e-mail for your domain. There must be only one SPF record per domain: adding a newsletter tool means editing it, not adding a second one.
DKIM publishes a public key; your provider signs each message with the matching private key, so the receiver can check it was not altered.
DMARC tells receivers what to do when SPF and DKIM fail (none to observe, quarantine to send to spam, reject to refuse) and where to send reports. Start with none, read the reports, then tighten.
This is no longer optional. Since February 2024, Gmail requires every sender to set up SPF or DKIM, and senders of around 5,000 messages a day or more to personal Gmail accounts to set up SPF, DKIM and DMARC (see Google’s e-mail sender guidelines). A quote sent from a domain without them is more likely to end up in spam.
What your business must own in its own name
The most expensive problems we see are not technical: they are accounts held by the wrong person. Check these points today:
The domain name holder is your company (or you, for a sole trader), not the agency, the freelancer or an employee. You can check the holder at your registrar or with a WHOIS/RDAP lookup; personal data of individuals is usually hidden, but the organisation name is often visible.
The registrar account is opened in the company’s name, with a shared or generic e-mail address you control (not the personal Gmail of a former employee), and two-factor authentication.
The hosting and e-mail accounts are in your name too, or your contract states that you can recover them and your data at any time.
The invoices for renewals reach someone who reads them.
Eligibility: a .fr can be held by people resident and companies established in the European Union, Iceland, Liechtenstein, Norway or Switzerland, and this condition applies for the whole life of the name (see Afnic’s FAQ).
Renewals, expiry and transfers
A domain name is rented, never bought for good. Turn on automatic renewal, keep a valid payment method on the account, and renew for several years if you like (most extensions allow up to ten). If a name expires, the site and the e-mail stop working; the registrar usually offers a period during which you can still renew, sometimes at a higher price, after which the name can be deleted and registered by anyone.
Three operations are often mixed up, and only the first one changes registrar:
Transferring the domain to another registrar: unlock the name, ask the current registrar for the transfer code (also called AUTH or EPP code), give it to the new one and confirm. The site keeps working if the DNS settings do not change. A transfer can be refused shortly after the name was registered or last transferred; the exact rules depend on the extension.
Changing DNS host: recreate every record at the new host first, compare, then change the NS records at the registrar.
Changing web host: copy the site, test it on the new server, then change only the A/AAAA records. The MX records stay untouched, so e-mail is not affected.
Before any change, export or screenshot the whole zone. Most incidents during a migration are a forgotten TXT or MX record that nobody had written down.
Professional e-mail: worth it for a small business
An address like contact@yourbusiness.fr inspires more trust than a free webmail address, survives a change of internet provider and stays with the company when people leave. Choose an e-mail provider separately from the web host if you can: if the site has a problem, your mail keeps working. Set up SPF, DKIM and DMARC on day one and create shared addresses (contact@, invoices@) rather than giving the only access to one person.
Where we can help
If you are not sure who holds your domain or how your DNS is configured, a short website audit lists your accounts, records and renewal dates and flags the risks. Our managed hosting includes HTTPS, backups and monitoring, and a maintenance plan keeps renewals and updates under control. For the yearly budget of a domain, hosting and maintenance, see how much a website costs; if you are about to move to a new site, read how to redesign without losing your rankings.
Frequently asked questions
What is the difference between a domain name and web hosting?
How long does DNS propagation take?
Can I keep my e-mail if I change web host?
Who should be the holder of my domain name?
Should I choose .fr or .com?
Not sure who holds what?
We check your domain, DNS, hosting and e-mail set-up and tell you what to fix, in plain language.