To configure a custom domain, navigate to the Microsoft 365 admin center after logging into the service as an administrator. You’ll find the link in the waffle menu in the top left as Admin:

Microsoft 365 Admin Center

Next, expand the left-hand menu under Settings and choose Domains (A). You will see the default domain listed. Choose Add Domain (B):

Add Custom Domain for Office 365

In the add domain wizard, enter your company’s domain name, then choose Use this domain.

Add a custom domain for Office 365

Before your domain is confirmed within Microsoft 365, you’ll need to verify you own the domain. The easiest way is to use a DNS TXT (text) record. This will be added into your DNS control panel in addition to any other existing TXT records and is in the format MS=ms123456789.

If you aren’t sure how to add this to your DNS provider, choose the Step-by-step instructions link which will provide a Microsoft guide specific to your DNS provider.

Verify your domain

After this step is complete, your domain is verified with Microsoft 365. You can choose to close the wizard at this point.

If you want to add additional records, such as those to allow Microsoft Teams chats with external people – or if you don’t have an existing email provider and want to receive mail at Microsoft 365 now, then you will want to choose Continue to activate relevant DNS records.

Below we’ll choose Continue with a plan to add Microsoft Teams-specific records:

Activate records

On the Add DNS records page, we’ll select Microsoft Teams and Skype for Business. This will show the specific DNS records we need to add. Much like if you have an email server you will not add MX records, the same applies here if you run Skype for Business Server or Lync Server on-premises – only consider adding the records if none exist.

Add DNS records

In our example DNS control panel the records added look similar to below, with records to support the communication with Skype for Business Online federated users (known as external users in Microsoft Teams):

Custom Domain for Office 365

When these DNS records have been successfully added, we’ll choose Continue. This will take us to the last page of the wizard.

Domain Setup is complete

After choosing Done, the custom domain will be added to your Office 365 tenant. If it’s the first custom domain, it will be set as your default domain.