How to Fix Microsoft 365 Invalid DNS Zone File CNAME Error
Question details
The user needs to resolve an invalid DNS zone file error in Microsoft 365 caused by conflicting autodiscover CNAME records.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Configuring domain DNS settings for Microsoft 365 services.
- Observed behavior
- Microsoft 365 reports an invalid DNS zone file because the autodiscover CNAME record conflicts with existing A, AAAA, or other incompatible records on the same hostname.
Ensure you have administrative access to your domain registrar's DNS management portal or the Microsoft 365 Admin Center before attempting to modify DNS records.
Remove Conflicting DNS Records and Update Autodiscover CNAME
Identify and delete any incompatible records (like A or AAAA) sharing the autodiscover hostname to allow the CNAME record to function properly.
DNS protocol dictates that a CNAME record must be the only record associated with a specific hostname. If you have an A, AAAA, or MX record for the 'autodiscover' host, the CNAME record will be considered invalid.
Log in to your domain host or registrar's control panel and navigate to the DNS management or Zone Editor section.
Search your DNS zone file for the 'autodiscover' hostname. Identify any existing A, AAAA, TXT, or MX records associated with this specific name.
Carefully remove the conflicting A or AAAA records. Ensure no other record type is sharing the 'autodiscover' name.
Create a new CNAME record with the host or alias set to 'autodiscover' and point it to the required target provided by Microsoft 365 (typically autodiscover.outlook.com).

Verify DNS Settings via Microsoft 365 Admin Center
Use the built-in Microsoft 365 tools to automatically check for DNS configuration errors and identify the exact conflict.
Switch to WPS Office for a Hassle-Free Productivity Experience
Dealing with complex Microsoft 365 administrative setups like DNS configurations can be frustrating. If you just need powerful productivity tools without the IT overhead, WPS Office offers a lightweight, completely free alternative that works right out of the box without requiring domain management.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installation file and follow the straightforward on-screen prompts.
- 3. Start Working Immediately: Launch WPS Office to instantly create, edit, and save documents with full Microsoft format compatibility.

Frequently Asked Questions
What does an 'Invalid DNS Zone File' mean in Microsoft 365?
It indicates that there is a structural error or conflict within your domain's DNS records. For Microsoft 365, this often happens when a CNAME record shares the same host name (like 'autodiscover') with an A or AAAA record, which violates DNS protocols.
Why does Microsoft 365 require an autodiscover CNAME record?
The autodiscover CNAME record allows email clients like Outlook and mobile devices to automatically find your Exchange mailbox settings using just your email address and password, making account setup completely seamless.
How long does it take for the Microsoft 365 invalid DNS error to disappear after fixing it?
After you update your DNS records at your domain registrar, it typically takes 15 minutes to an hour for the Microsoft 365 Admin Center to detect the changes, though standard global DNS propagation can occasionally take up to 48 hours.
Can a CNAME record coexist with an MX record for the same hostname?
No, a CNAME record must be strictly unique for that specific hostname. If 'autodiscover' is set as a CNAME, it cannot also have an MX, TXT, or A record associated with it at the same time.




