Skip to content

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.

Illustration: a globe linked by light cables to a DNS hub that branches to a server rack and a mailbox
On this page
  1. Domain name, DNS, hosting and e-mail: four roles
  2. How a visitor reaches your site, step by step
  3. The DNS records you will actually meet
  4. SPF, DKIM and DMARC: proof that your e-mail is really yours
  5. What your business must own in its own name
  6. Renewals, expiry and transfers
  7. Professional e-mail: worth it for a small business
  8. Where we can help
  9. 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.

Diagram: the registrar points to the DNS zone; A, AAAA and CNAME records lead to the web host, MX and TXT records to the e-mail provider
The registrar says which servers hold your DNS zone; the records in the zone send visitors to the web host and e-mail to the mail provider.

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:

  1. 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.

  2. 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).

  3. The .fr servers answer with the name servers of your domain: the servers of your DNS host.

  4. Your DNS host gives the A record (IPv4 address) or AAAA record (IPv6 address) of the site.

  5. 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).

  6. The browser connects to the web host at that address, over HTTPS, and receives the page.

Diagram of DNS resolution: browser, resolver, root servers, .fr servers, your DNS host, then the HTTPS connection to the web host
In practice resolvers keep answers in cache, so most visits skip steps 2 to 4.

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 zone (simplified)
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:

  1. 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.

  2. Changing DNS host: recreate every record at the new host first, compare, then change the NS records at the registrar.

  3. 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?
The domain name is your address on the internet (example.fr), rented from a registrar. Hosting is the server that stores the site and sends its pages. DNS links the two: it tells browsers which server answers for the name.
How long does DNS propagation take?
It depends on the TTL of the record you change. Resolvers keep the old answer until it expires: often an hour, sometimes a day. Lowering the TTL a day or two before a planned change makes the switch almost immediate.
Can I keep my e-mail if I change web host?
Yes. If your e-mail is with a separate provider, change only the A/AAAA records of the site and leave the MX and TXT records as they are. If the old host also provided your mailboxes, migrate them first.
Who should be the holder of my domain name?
Your company, or you if you are a sole trader. The registrar account should use an e-mail address you control and two-factor authentication. Agencies and freelancers can manage it for you, but should not hold it.
Should I choose .fr or .com?
For a business that works mainly in France, .fr is a natural choice and is open to companies established in the European Union. Many businesses register both and redirect one to the other to protect their name.

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.

Ask for a check

Newsletter

Practical notes on web, SEO and AI

One e-mail a month at most: new articles, checklists and what actually works for small businesses. No spam, unsubscribe in one click.

Your address is only used to send this newsletter, through our e-mailing provider Brevo. Privacy policy

Web development 8 min read

How to write a website brief that gets accurate quotes

Goals, audience, pages, features, content, design, technical constraints, budget and success metrics: the nine sections of a website brief that gets you precise, comparable quotes, with a template to copy.

Roma Roterman

Web development 8 min read

Website maintenance: what it includes and why it matters

Updates, backups and restore tests, security and uptime monitoring, speed and content: what website maintenance really covers, how often each task should happen, and how to choose a maintenance plan.

Roma Roterman

Web development 9 min read

Website security for small businesses: 10 practical measures

HTTPS and HSTS, updates, passwords and two-factor authentication, access rights, 3-2-1 backups, firewall, form protection, hosting, monitoring and what the GDPR requires after a breach: ten measures to secure a small business website.

Roma Roterman

Have a project in mind?

Tell us what you want to achieve: you get a clear proposal and a fixed price before any work starts.

Talk about your project