How to Add a Custom Domain in Microsoft 365 and SharePoint
Adding a custom domain to Microsoft 365 enhances your organization’s branding by allowing you to use your own domain for email addresses, SharePoint sites, and other Microsoft 365 services. This guide walks you through the process of adding a custom domain to Microsoft 365 and configuring it for SharePoint.
Prerequisites
Before proceeding, ensure you have the following:
- A Microsoft 365 subscription with administrative privileges
- A registered domain name (e.g., yourcompany.com)
- Access to your domain registrar’s DNS settings
Step 1: Add the Custom Domain in Microsoft 365
- Sign in to Microsoft 365 Admin Center
- Go to Microsoft 365 Admin Center
- Sign in with your global admin credentials
- Navigate to Domains
- In the left-hand menu, click on Settings > Domains
- Click Add domain
- Enter Your Domain Name
- Type your domain name (e.g.,
yourcompany.com
) and click Next
- Type your domain name (e.g.,
- Verify Ownership
- Microsoft will provide a TXT record that needs to be added to your domain’s DNS settings.
- Go to your domain registrar’s website and navigate to DNS settings.
- Add the TXT record provided by Microsoft and save changes.
- Return to Microsoft 365 and click Verify after DNS propagation (this may take a few minutes to an hour).
Step 2: Configure DNS Records
After verification, Microsoft will prompt you to configure DNS records to enable services like email and SharePoint.
- Choose DNS Management Option
- You can allow Microsoft to configure DNS settings automatically (if your domain is with a supported registrar) or manually enter records.
- Manually Add DNS Records (if required)
- MX Record: Routes emails to Microsoft 365
- CNAME Records: Required for Outlook, Teams, and other services
- TXT Record: SPF record for email authentication
- SRV Records: Required for Skype for Business and Teams
- Save DNS Settings and wait for propagation.
Step 3: Configure SharePoint to Use Custom Domain
By default, SharePoint Online uses a subdomain of yourtenant.sharepoint.com
. Custom domains cannot replace this, but you can create a custom site address using Microsoft 365 settings.
- Set Up a Vanity URL for SharePoint Online
- Go to the SharePoint Admin Center
- Navigate to Active Sites
- Select the site you want to rename and choose Change Site Address
- Enter a new site address (e.g.,
https://yourcompany.sharepoint.com/sites/intranet
)
- Use Custom Domain for Public-Facing SharePoint Sites (For SharePoint Server or Power Pages)
- If using SharePoint Server, configure Alternate Access Mappings (AAM) to use a custom domain.
- If using Power Pages, configure custom domain settings within the Power Pages admin.
Step 4: Test and Finalize Configuration
- Check Email Configuration
- Send test emails to and from your custom domain address.
- Access SharePoint Online
- Ensure SharePoint sites are accessible via the correct URLs.
- Verify DNS Settings
- Use Microsoft 365 Domain Checker to confirm correct setup.