domain
How to connect a domain to your website without breaking your email
Your website and your email use different DNS lines. Add the website lines, leave the email lines alone, and do not change nameservers. Step by step.
Contents
You can connect a domain to a new website without touching your email, because they use different lines in your DNS settings. The website uses a www line, a check code and a forward. Email uses MX lines plus lines for SPF, DKIM and DMARC. Add the website lines, leave the email lines alone, and do not change your nameservers.
This article is one step in our guide to putting an AI-made website online on your own domain. New to DNS? Read what DNS is, in plain words first; it takes five minutes.
Why are your email and your website separate?
Think of the DNS settings for your domain as a contact card. One field says where your website lives. Another field says where post (your email) is delivered. You can move house without changing where your post office box is.
On the card, the website and the email are different DNS records, with different names and types. Your website host only needs you to change the website fields. Your email provider (Microsoft 365, Google Workspace, or the mail that came with your domain) owns the email fields. As long as nobody changes those, email keeps arriving.
Which lines does your email use?
These are the lines to recognise and then leave alone:
- MX lines. The MX record says which mail server receives your email. You may see one or several, each with a priority number.
- The SPF line. A TXT record that starts with
v=spf1. It lists who may send email in your name, so your mail does not land in spam. A domain must have only one; Microsoft's own guide says to merge values into the existing line instead of adding a second. - DKIM lines. A signature check for your email. The name contains
_domainkey. Microsoft 365 uses two CNAME lines (selector1._domainkeyandselector2._domainkey); others use a TXT line. - DMARC. A TXT line named
_dmarcwith your email policy. - Autodiscover. A CNAME named
autodiscoverthat helps Outlook find your mailbox settings.
Which lines does your website use?
Usually only these:
- A check code. A TXT line that proves to your host that the domain is yours. Its name is chosen by the host, so it will not clash with your email lines.
- The www line. Most hosts give you a CNAME for www, which says "www is an alias of this address at the host." Some give an A record instead. A record vs CNAME explains the difference.
- The name without www. Either a forward from
yourname.nltohttps://www.yourname.nl, set in your provider's forwarding screen, or an A record your host asks for.
Here they are side by side:
| Website lines | Email lines | |
|---|---|---|
| Typical names | www, the name without www, a check code name | The name without www (shown as @ or blank), _dmarc, selector1._domainkey, autodiscover |
| Typical types | CNAME, A, TXT | MX, TXT, CNAME |
| Who gives you the values | Your website host | Your email provider |
| Do you change them to connect a website? | Yes | No |
| What breaks if they are wrong | The website | Your email |
Why must the name without www never get a CNAME?
Your email lines live on the name without www: the MX lines and the SPF line sit on yourname.nl itself. The rules of DNS say a CNAME cannot share a name with any other line (RFC 1034, section 3.6.2). So a CNAME on yourname.nl would clash with your MX lines. Many providers refuse it; Strato, for example, only allows a CNAME on a subdomain such as www.
That is why hosts give you a CNAME for www, and a forward or an A record for the name without www. It keeps the website and the email out of each other's way.
How do you connect your domain, step by step?
Before you start: open the DNS settings at your domain provider and take a screenshot of every line. If you ever need to put something back, you have it.
Step by step
Connect a domain to your website and keep your email working
Time needed: 20 min
Make a screenshot
Open the DNS settings at your domain provider and save a screenshot of every line before you change anything.
Mark your email lines
Find the MX lines and the TXT lines for SPF, DKIM and DMARC, plus any autodiscover line. You will not touch them.
Add the check code
Add the TXT line your website host gives you to prove the domain is yours.
Add the www line
Add the www line your host gives you, usually a CNAME. If an old www line exists, this one replaces it.
Point the name without www
Forward
yourname.nltohttps://www.yourname.nlwith your provider's forwarding setting, or add the A record your host asks for. Never put a CNAME on the name without www.Leave the nameservers alone
Do not change your nameservers unless you know your email lines will move with them.
Test both
Open your site on www and without www, then send yourself a test email from another address.
Where exactly is the DNS screen at TransIP, GoDaddy or Namecheap? Our guides per domain provider show the menu names. Rather not do it yourself? Many domain providers have a helpdesk that will add the lines for you if you send them.
Here is a screenshot of the DNS settings for my domain. I want to connect my website without touching my email. Tell me which lines belong to my email and must stay exactly as they are. Then tell me which lines I should add or replace for the website, one by one, with Type, Name and Value.
What does UpSheGoes ask you to add?
If your AI assistant put your site online with UpSheGoes, the lines come from your AI. You copy a few lines from your AI into the settings at the company where you bought your domain. First your AI gives you one check code. When UpSheGoes sees it, your AI gives you the www line and two more codes. An example for yourname.nl (the values come from your assistant):
| Round | Type | Name | Value |
|---|---|---|---|
| 1 | TXT | _upshegoes-verify | Check code from your assistant |
| 2 | CNAME | www | Address from your assistant |
| 2 | TXT | _cf-custom-hostname.www | Code from your assistant |
| 2 | TXT | _acme-challenge.www | Code from your assistant |
Also set yourname.nl to forward to https://www.yourname.nl. Most domain providers have a setting called forwarding or redirect. If yours has none, your site works on www.yourname.nl only.
Leave every other line alone. Your email settings stay exactly as they are; UpSheGoes never changes them. It cannot edit DNS at your provider at all, and it never asks you to change nameservers. How long this takes depends on your domain provider. Your AI keeps checking and tells you when your site is live. The full walkthrough is in connect your domain; how it fits together is on how it works.
Why is changing nameservers the one risky move?
Your nameservers decide which company keeps your whole DNS list. Change them and every line moves to the new company at once. If the new list does not contain your MX, SPF and DKIM lines, email stops until someone adds them. That is how most "my email broke" stories start.
Some website builders ask for a nameserver change because it is easier for them. For a simple website you rarely need it. Adding a few lines at your current provider, as above, keeps everything else where it is. Your domain provider stays where it is too.
Also watch for "default settings" switches. At TransIP, switching on "TransIP-instellingen" overwrites all your DNS lines with TransIP's defaults. At mijndomein, pointing the MX line elsewhere switches off the mailboxes there. Both are on their own help pages (checked on 12 November 2026).
Your email stopped. What do you check?
Stay calm. A sending mail server that cannot deliver usually tries again for a while, so mail sent in the meantime often still arrives once the lines are fixed. Work through this list:
- Compare with your screenshot. Is every MX line still there, with the same value and priority?
- Check the nameservers. Did they change? If so, either change them back or add your email lines at the new company.
- Count the SPF lines. There must be exactly one TXT line that starts with v=spf1.
- Look for a CNAME on the name without www. If one slipped in, remove it and use a forward or A record instead.
- Wait a little. After a fix, give it up to a few hours: computers keep old copies for a while.
- Ask for help. Your email provider and your domain provider can both see what is wrong. Send them your screenshot.
You can check your MX lines yourself with the free Google Admin Toolbox Dig (choose MX).
Sources and further reading
Checked on 12 November 2026.
- Microsoft Learn: Connect your domain by adding DNS records (MX, SPF, autodiscover and DKIM lines for Microsoft 365; one SPF line)
- Google Workspace Admin Help: Set up MX records and Set up SPF
- RFC 1034, section 3.6.2: a CNAME cannot sit next to other data
- Strato: How to configure a CNAME record (subdomains only, in Dutch)
- TransIP: DNS and nameservers in the control panel (the TransIP-instellingen switch, in Dutch)
- mijndomein: DNS records (what happens to their mailboxes when MX changes, in Dutch)
Questions
Fair questions, straight answers
Will connecting my domain to a new website stop my email?
No, as long as you only add or change the website lines (the www line, a check code, and the forward or A record for the name without www). Email runs on its own lines: MX, plus the lines for SPF, DKIM and DMARC. Leave those exactly as they are.
I use Microsoft 365 for email. Which lines must I keep?
The MX line Microsoft gave you, the TXT line that starts with v=spf1 and includes spf.protection.outlook.com, the autodiscover CNAME, and the DKIM lines selector1._domainkey and selector2._domainkey if you added them. None of these has anything to do with your website.
I use Google Workspace for email. Which lines must I keep?
The MX line (smtp.google.com, or older lines that start with aspmx), the TXT line that starts with v=spf1 and includes _spf.google.com, and any line with _domainkey or _dmarc in its name. A website needs none of them.
My email is at my domain provider. Is that different?
Not really. The MX lines then point to your provider's own mail servers, and you leave them alone in the same way. Be careful with any 'restore default settings' or 'standard settings' switch: at some providers, such as TransIP, switching it on overwrites all your lines.
Do I need to change my nameservers to connect a website?
For most website hosts, no. Adding a few lines at your current provider is enough. Changing nameservers moves all your DNS lines to another company at once, and that is the usual way email breaks.
Should I delete my old A record or www line?
Only the old www line if your new host gives you a different one: there can be one www CNAME, and it cannot sit next to another www line. Do not delete lines you do not understand. Ask your AI or your provider's helpdesk first.
My email stopped after a DNS change. What do I check first?
Compare your settings with the screenshot you made before. Check that the MX lines are still there and unchanged, that the nameservers did not change, and that there is still exactly one TXT line starting with v=spf1. Put back anything that is missing, then give it up to a few hours.