Can Microsoft 365 Accept a Domain Name with a Hyphen?
Question details
The user is inquiring whether Microsoft 365 supports custom domain names that include a hyphen and how to properly add them to the service.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Adding a new custom domain name containing a hyphen to a Microsoft 365 account to configure services like Exchange Online.
- Observed behavior
- Microsoft 365 fully accepts and supports custom domain names containing hyphens, provided the domain is valid, correctly registered, and verified through DNS records.
Ensure you have global administrator privileges for your Microsoft 365 admin center and possess the login credentials for your domain registrar's DNS management portal.
Add and Verify a Hyphenated Domain in Microsoft 365 Admin Center
You can safely add your custom domain containing a hyphen to Microsoft 365 by utilizing the standard domain setup wizard and verifying your ownership via DNS records.
Microsoft uses DNS records from your domain provider to verify ownership and route Microsoft 365 services correctly. Having a hyphen in the domain name is completely standard and does not cause syntax errors within the Microsoft ecosystem as long as standard DNS rules are met.
Log in to the Microsoft 365 admin center using your administrator account credentials.
On the left-hand navigation pane, click on 'Settings' to expand the menu, and then select 'Domains'.
Click the 'Add domain' button. Enter your custom domain name exactly as registered (including the hyphen, e.g., my-company.com) and click 'Use this domain'.
Choose your preferred verification method (usually adding a TXT record). Copy the TXT value provided by Microsoft, log into your domain registrar's control panel, and paste it into your DNS settings.
Return to the Microsoft 365 admin center and click 'Verify'. Once ownership is confirmed, follow the remaining prompts to configure essential DNS records (MX, CNAME, TXT) for Exchange Online and other services.

Looking for a Hassle-Free Office Suite? Try WPS Office
While setting up cloud infrastructure and custom domains in Microsoft 365 can be highly technical, your daily productivity software doesn't have to be. WPS Office provides a free, lightweight, and incredibly user-friendly alternative to Microsoft Office, enabling you to focus on your work without worrying about complex admin configurations.
- 1. Download WPS Office: Visit the official WPS website to download the free installer for your specific operating system.
- 2. Install the Software: Run the setup application and follow the straightforward on-screen instructions to complete the installation.
- 3. Start Creating Instantly: Open WPS Office and easily drag and drop your existing Microsoft Office files to begin editing immediately.

Frequently Asked Questions
Can a domain name start or end with a hyphen in Microsoft 365?
No. While Microsoft 365 supports hyphens, standard internet DNS protocols dictate that a domain name cannot begin or end with a hyphen. Hyphens are only permitted in the middle of the domain name.
Will having a hyphen in my domain affect Microsoft Exchange email deliverability?
No, including a hyphen in your domain name does not negatively impact your email deliverability in Exchange Online. As long as your SPF, DKIM, and DMARC records are configured correctly, your emails will route normally.
Why is my hyphenated domain verification failing in the Admin Center?
Domain verification usually fails either because the newly added TXT or MX record hasn't propagated globally yet, or because it was entered incorrectly at your domain registrar. Double-check the exact values provided by Microsoft 365 against what is saved in your DNS provider's settings.
Are there character limits for hyphenated domains in Microsoft 365?
Microsoft 365 enforces standard DNS rules, meaning each label (the part of the domain separated by dots) can be up to 63 characters long, and the total domain length cannot exceed 253 characters, including any hyphens.




