Adding a domain to Microsoft 365

A new Microsoft 365 environment uses an address like contoso.onmicrosoft.com by default. That doesn't look very professional. To send email and sign in under your own name, such as john@contoso.com, you add your domain to Microsoft 365. This article shows how to verify the domain, set up the DNS records, give users the new address and fix the typical problems.

Updated on 22 October 2026. Expanded with what you need upfront, the new MX format, combining into one SPF record, DMARC, synced users, common errors and a short FAQ.

What do you need?

Add and verify the domain

  1. Go to admin.microsoft.com > Settings > Domains > Add domain.
  2. Type your domain name and select Continue.
  3. Verify ownership with a TXT record at your DNS provider. The value starts with MS=ms followed by digits. With some providers it works automatically through Domain Connect: you sign in at the provider and Microsoft adds the records itself.
  4. Select Verify. If it fails right away, wait a while: DNS changes can take a few hours to show up everywhere.
Adding a domain in the Microsoft 365 admin center

The DNS records

After verification you choose whether Microsoft adds the records for you (with Domain Connect) or you add them yourself. The admin center then shows the exact values:

Migrating email from another provider? Only change the MX record once the mailboxes are ready, otherwise new mail lands in an empty mailbox.

The DNS records Microsoft 365 shows for your domain

One SPF record per domain

Also sending mail through a newsletter service, accounting package or your website? Add them to the same SPF record, for example v=spf1 include:spf.protection.outlook.com include:mailprovider.example -all. Two separate SPF records make SPF invalid.

Give users the new address

Note: after a username change, people have to sign in again in Outlook, Teams and OneDrive. Let them know in advance.

Users from on-premises Active Directory

If you sync with Entra Connect, you don't change the username in Microsoft 365 but in Active Directory. The domain must exist there as a UPN suffix first. Read add a domain as a UPN suffix.

Next: security

Enable DKIM and add a DMARC record, a TXT record on _dmarc.contoso.com. Start with v=DMARC1; p=none; rua=mailto:dmarc@contoso.com to collect reports, then move to quarantine or reject later. Your emails are less likely to land in spam and spoofing gets harder.

Common problems

FAQ

Can I remove the onmicrosoft.com domain?

No, it always stays. You can replace it as the default domain, though.

Does an extra domain cost money?

Not at Microsoft. You only pay for the registration at your registrar. You can use an extra domain as an alias for a second brand, for example.

Nederlandstalige versie: Je eigen domein toevoegen aan Microsoft 365


Related articles