A domain is your website’s address (for example yourcompany.com), hosting is the server your website runs on, and DNS is the internet’s “phone book”, which tells the world where your domain’s website and email should go. Domain, hosting and email can be with three different providers; DNS records tie them together. Once you understand this relationship, it is much easier to avoid website or email outages whenever something changes.

If you are changing hosting or domain right now and want to be sure nothing stops working, I can help through my website migration service.

What is a domain?

A domain is the name people type into a browser and use in an email address. You do not rent a domain permanently. You register it for a period, usually a year, and then renew it. You register it with a registrar, and the owner (registrant) of the domain should always be you or your company, not your web developer.

If you forget to renew the domain, your website and email stop working at the same time. The guide how to renew a domain explains how. You will find more about the term in the glossary under domain.

What is hosting?

Hosting is space on a server where your website’s files and database are stored. A server is a computer connected to the internet that runs non-stop and sends pages to visitors. Hosting may include email mailboxes, but it does not have to. I cover the different types of hosting in the article how to choose web hosting for WordPress.

What is DNS?

Computers on the internet do not find each other by name but by IP address (for example 192.0.2.10). DNS (Domain Name System) translates a domain name into the server’s IP address. When you type yourcompany.com into a browser, the browser first asks DNS where to find the site, and only then connects to the server.

A domain’s DNS settings are stored on nameservers. The domain specifies which nameservers are authoritative for it: they can be at the registrar, at the hosting company or with another service. Wherever your DNS is, that is where all records are changed.

What DNS records are there and what are they for?

RecordWhat it doesExample
Apoints the domain to the server’s IPv4 addressyourcompany.com runs on the hosting server
AAAAthe same for an IPv6 addressmodern servers have both
CNAMEalias – points one name to another namewww.yourcompany.com points to yourcompany.com or an external service
MXspecifies which server receives emailemail to @yourcompany.com is received by Microsoft 365
TXTtext information and verificationsSPF, DKIM, DMARC, verification for Google or Meta

A and CNAME records – where the website goes

When you change hosting, it is the A record (and possibly the CNAME for www) that you change. Everything else stays the same.

MX record – where email goes

The MX record says which server receives mail for your domain. This means your website can run on one hosting service and your email on a completely different one.

TXT records – SPF, DKIM, DMARC

These records tell receiving servers who is allowed to send email on behalf of your domain and how to verify it is genuine. Without them, your emails end up in spam more often. You will find the steps in the guide how to add SPF and DMARC records.

How do domain, hosting and email fit together?

Think of it like this:

  • The domain is the company name on the doorbell.
  • DNS is the sign by the entrance: “office – 2nd floor, post – letterbox on the left”.
  • Hosting is the office where the website sits.
  • The email server is the letterbox.

The office and the letterbox can be in different buildings. As long as the sign (DNS) points the right way, everything works.

What happens when you change each part?

Changing hosting

The A record (and possibly CNAME) changes. Email is not affected unless it is on the old hosting. If it is, you also need to move the mailboxes and change the MX record. Step-by-step instructions are in the article how to move a website to new hosting without downtime.

Changing email provider

The MX and TXT (SPF, DKIM) records change. The website is not affected.

Changing domain registrar

The domain is transferred to another registrar. If the nameservers stay the same, nothing changes. If DNS was hosted at the old registrar, it needs to be moved first, otherwise both website and email may go down.

Changing nameservers

The riskiest operation. All records (A, MX, TXT…) must be set up on the new nameservers in advance, otherwise anything missing from them stops working after the switch.

Changing domain

A completely new address for both website and email. Here you also need to deal with redirects and SEO. More in the article how to change your domain without losing Google rankings.

What is TTL and why do DNS changes not take effect immediately?

Every DNS record has a TTL – the time other servers may remember it. If the TTL is several hours, some visitors will only see the change after that time. That is why the TTL is lowered before a planned change. If a change “does not work”, it is often enough to wait or clear your browser cache.

What should you have written down?

  • where the domain is registered and when it is paid until,
  • where the nameservers are and who has access to them,
  • where the website runs (hosting) and where email runs,
  • login details stored in a password manager, not in your supplier’s head.

With this information, you can handle any change without panic.

Frequently asked questions

How long does it take for a DNS change to take effect?

It depends on the record’s TTL and how long internet providers’ servers remember the old value. With a low TTL, the change takes effect within minutes; with a high one it can take hours. A nameserver change can take longer.

Can I have my domain with one provider and email with another?

Yes, it is common. The domain can be with a registrar, the website on a hosting service and email in Microsoft 365, for example. DNS records connect everything: A for the website and MX for email.

How I can help

I will map out where your domain, DNS, website and email are, and prepare changes so that nothing stops working. I will move your website to new hosting, set up DNS records including SPF, DKIM and DMARC, and document everything. You will find more about moving on the website migration page. If you want someone to look after your domain, hosting and updates long term, have a look at website maintenance.