Overview

Add and verify a domain

Microsoft 365 starts every school on a name like contoso.onmicrosoft.com. This guide adds the school's own domain, proves you own it and adds the records that make email, Outlook and device enrolment work.

5 minute readFor IT leads and support providersReviewed 15 November 2026
What improves

Staff and pupils sign in with the school's own address.

Why it matters

A new tenant only has an onmicrosoft.com name, which nobody recognises.

How you do it

Add the domain, prove you own it with a DNS record and set it as the default.

Every name, address and value in this guide is an example. Replace them with your own.

What you will have at the end

ItemExample
Tenantcontoso.onmicrosoft.com
School domaincontoso.com, verified and set as default
Staff and pupil sign-inname@contoso.com
EmailMX, SPF, DKIM and DMARC records in place
DevicesWindows enrolment records for Entra join and Intune

What you need

  • A Global Administrator account for the tenant.
  • Access to the school's DNS, wherever it is hosted: your registrar, Azure DNS or your web host.
  • Half an hour, then up to a day for DNS changes to reach Microsoft.

The route

  1. Add and verify the domain

    One TXT record proves you own it.

  2. Add the email records

    MX, SPF and autodiscover.

  3. Turn on DKIM and DMARC

    Sign outgoing mail and publish your policy.

  4. Add device enrolment DNS records

    So Windows finds Entra and Intune by itself.

  5. Set it as default and check

    New accounts get the school's name.

Using a subdomain

A school or trust can verify a subdomain such as edu.contoso.com in a different tenant from contoso.com. This works with a Microsoft Education tenant. Put the subdomain in its own DNS zone so its records stay apart from the main site.

Sources

Your progress is kept in this browser only.