Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Understand the difference between Domain and DNS zone
This guide explains how a domain name and a DNS zone work.
Preamble
- When you browse a website
https://www.abc123.xyz
for example,abc123.xyz
is the domain name. - Each domain name has a DNS (Domain Name System), which indicates where the DNS zone is located (with which provider, for example).
- The DNS zone then allows the management of various services related to the domain name to be entrusted to different service providers.
- For a single domain name, it is possible, for example, to entrust:
- web hosting with a provider X (via the "
A
" record) - and the Mail Service to a provider Y (via the "
MX
" record)
- web hosting with a provider X (via the "
- For a single domain name, it is possible, for example, to entrust:
Domain name, DNS and DNS zone, then services
Who manages what?
- Each domain name is reserved and managed by a registrar (registration office). For example, Infomaniak is a registrar, one of the cheapest in Switzerland.
- The DNS of a domain name are configured with the registrar that manages the domain name.
- The DNS zone can be managed by the registrar or another service provider.
- Web hosting and email service can be handled by any host.
In the most common example, it is therefore possible to have 1 different provider for the following services: domain name registration and DNS management, DNS zone management, Web hosting, Mail Service.
The following diagram summarizes these different possibilities, with X, Y, A and B being different providers.
Infomaniak
As a registrar and host, Infomaniak can manage all these services. It is the simplest solution.
- In the case of Infomaniak, the DNS are generally in the form of nsXX.infomaniak.com and nsXX.infomaniak.com (XX such as 11 or 12 for example).
- You can modify the DNS of your domain name, as well as modify the "inside" of these DNS, that is to say modify the DNS zone of a domain name.
And in these DNS zones, to redirect traffic to services, we distinguish:
- an MX record that allows you to point a domain name (
domain.xyz
for example) to a mail server. - an A record that allows you to point a domain name (
domain.xyz
for example) or a subdomain (example.domain.xyz
for example) to a web server with a static IP address (otherwise you would have to constantly edit the A record to update the new IP address - refer to this other guide on this subject)
Some possible situations
Examples and fictitious names
All services are with Infomaniak | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | Infomaniak |
DNS for the domain name | ns1.infomaniak.com… | so the DNS zone must exist at -> | Infomaniak |
hosted by -> | Infomaniak | so the DNS zone must contain an A record | 123.45.67.8 for example |
hosted by -> | Infomaniak | so the DNS zone must contain an MX record | mx-mail.maniak for example |
All services are with Infomaniak except the email service | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | Infomaniak |
DNS for the domain name | ns1.infomaniak.com… | so the DNS zone must exist at -> | Infomaniak |
hosted by -> | Infomaniak | so the DNS zone must contain an A record | 123.45.67.8 for example |
hosted by -> | Medical Service | so the DNS zone must contain an MX record | med-mx.net for example |
All services are with Infomaniak except the website | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | Infomaniak |
Domain name DNS | ns1.infomaniak.com… | so the DNS zone must exist at -> | Infomaniak |
hosted by -> | Clinique | so the DNS zone must contain an A record | 9.87.65.4 for example |
email hosted by -> | Infomaniak | so the DNS zone must contain an MX record | mx-mail.maniak for example |
All services are with Infomaniak except the domain name | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | GoMamie |
DNS for the domain name | ns1.infomaniak.com… | so the DNS zone must exist at -> | Infomaniak |
site hosted by -> | Infomaniak | so the DNS zone must contain an A record | 123.45.67.8 for example |
email hosted by -> | Infomaniak | so the DNS zone must contain an MX record | mx-mail.maniak for example |
All services are with Infomaniak except the DNS zone | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | Infomaniak |
DNS of the domain name | ns.privateDNS.org… | so the DNS zone must exist at -> | Private DNS |
site hosted by -> | Infomaniak | so the DNS zone must contain a record A | 123.45.67.8 for example |
hosted by -> | Infomaniak | so the DNS zone must contain an MX record | mx-mail.maniak for example |
No service exists with Infomaniak except the domain name | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | Infomaniak |
DNS of the domain name | ns.privateDNS.org… | so the DNS zone must exist at -> | Private DNS |
site hosted by -> | Clinic | so the DNS zone must contain a record A | 9.87.65.4 for example |
mail hosted by -> | Medical Service | so the DNS zone must contain an MX record | med-mx.net for example |
No service exists with Infomaniak except the DNS zone | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | GoMamie |
DNS of the domain name | ns1.infomaniak.com… | so the DNS zone must exist at -> | Infomaniak |
hosted by -> | Clinic | so the DNS zone must contain an A record | 9.87.65.4 for example |
mail hosted by -> | Medical Service | so the DNS zone must contain an MX record | med-mx.net for example |
No service exists with Infomaniak except for email | |||
---|---|---|---|
domain name | domain.xyz | registered with -> | GoMamie |
DNS for the domain name | ns.privateDNS.org… | so the DNS zone must exist at -> | Private DNS |
site hosted by -> | Clinic | so the DNS zone must contain an A record | 9.87.65.4 for example |
email hosted by -> | Infomaniak | so the DNS zone must contain an MX record | mx-mail.maniak for example |
etc.
Link to this FAQ: