How to Set Up DNS for Microsoft 365 or Google Workspace
Add and verify your domain, and create your users. Then copy the MX, SPF, DKIM and other records your Microsoft 365 or Google Workspace admin console shows into your DNS. Keep one SPF record, switch DKIM on, and ask support to set your hosting's email routing to remote.
Applies to: cPanel Google Workspace Microsoft 365 Domains using Microsoft 365 or Google Workspace email with Blue Arctic hosting or DNS
On this page
When your email moves to Microsoft 365 or Google Workspace, add DNS records. They send mail to your new provider (MX) and prove your email is genuine (SPF, and DKIM, a hidden signature). Copy the exact values from your provider’s setup page.
Warning
When you change your MX records, new email starts going to your new provider. For up to 3 days, some senders’ mail can still go to our server. Keep checking your Blue Arctic mailbox in Webmail, and if someone says their message bounced, ask them to send it again. Old messages aren’t copied.
Where to add them
Add records wherever your domain’s DNS is managed. To find out, look up your domain at lookup.icann.org and check its nameservers. If they contain cloudflare.com, use Cloudflare and keep the records DNS only. If they contain your registrar’s name, use your registrar. If they’re the nameservers we gave you for your hosting, use cPanel: see how to add or edit DNS records and set up MX records. If you can’t tell, open a support ticket.
Warning
Before you change anything, take a screenshot of your current DNS records, so you can put them back. Also copy any TXT record that starts with v=spf1 into a note.
Microsoft 365
- In the Microsoft 365 admin center, select Show all, then Settings > Domains.
- If your domain isn’t listed, select + Add domain, enter your domain and select Use this domain.
- Choose Add a TXT record to the domain’s DNS records, select Continue, add the TXT record it shows, then select Verify.
- Add your users and their mailboxes before the MX step, so email keeps working during the switch.
- Back in Settings > Domains, select your domain, then DNS records, Manage DNS and Continue.
- On the Add DNS records page, keep Exchange and Exchange Online Protection selected, then select Advanced options and DomainKeys Identified Mail (DKIM).
- Expand MX Records, CNAME Records and TXT Records, and add each record exactly as shown, including both DKIM CNAME records. Give the MX record priority
0. Merge SPF as shown below. If a record namedautodiscoveralready exists, open a support ticket before you change it. - Delete any old MX records, then select Continue. When Microsoft finds the records, select Done.
- To switch on DKIM, open security.microsoft.com/authentication, select the DKIM tab, then your domain, and turn on Sign messages for this domain with DKIM signatures. If Microsoft can’t find the CNAME records yet, try again later.
Google Workspace
Note
In step 5, Google can’t create your DKIM record until 24 to 72 hours after Gmail is turned on. If you see “DKIM record was not created”, come back later.
- Add the verification TXT record the Google Admin console shows during setup (it starts with
google-site-verification=), and wait until Google confirms your domain. - Create your users in Google Workspace.
- Replace your MX records with one MX record: priority
1, valuesmtp.google.com. Delete the others. - In the Admin console, go to Menu > Account > Domains > Manage domains, click Activate Gmail for your domain, and follow the steps on screen.
- In the Admin console, go to Menu > Apps > Google Workspace > Gmail > Authenticate email, choose your domain and click Generate New Record, then Generate.
- Add the DKIM TXT record with the host name and value shown (the host usually starts with
google._domainkey). - Return to Authenticate email and click Start authentication. DKIM can take up to 48 hours to start working.
Merge your SPF record
If your domain already has a TXT record starting with v=spf1, edit it instead of adding a second one. Keep everything already in it; those parts may cover your website’s own email. Add the new provider’s part just before the ending (~all or -all). Microsoft 365 uses include:spf.protection.outlook.com and Google Workspace uses include:_spf.google.com. For example, v=spf1 ip4:203.0.113.10 ~all becomes v=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com ~all. See our SPF guide, or ask in a support ticket.
Stop cPanel keeping the mail
If your website is on Blue Arctic Shared Web Hosting, our server may keep delivering email it sends to your own address (like contact-form messages) to the old mailbox until its email routing is set to remote. This applies wherever your DNS is managed.
About 3 days after you switch your MX records, once new email has stopped arriving in your Blue Arctic mailbox, open a support ticket. Ask us to make sure your domain’s email routing is set to remote. Asking earlier can bounce mail still on its way.
How to tell it worked
Your provider shows your domain as set up. A test email from an outside account arrives in the new mailbox. Your reply lands in that account’s inbox (not spam). Once we’ve changed the email routing, a contact-form test arrives too.
Troubleshooting
- Some email still goes to the old mailbox: an old MX record remains, or the change is still spreading (see How Long DNS Changes Take).
- Your provider can’t find a record: check for typos. Some DNS editors add your domain to the name by themselves, so enter only the part before it.
- Website form emails go to spam: your SPF record may have lost your website’s server. Put it back from your saved copy, or ask us for it in a support ticket.
Still need help?
Open a support ticket in the Client Portal at my.bluearctic.com (see our support page). Include your domain, which provider you’re moving to, screenshots of the records you added, and what you already tried. Never include a password.