logo
search
Others

How to Fix Microsoft 365 Invalid DNS Zone File CNAME Error

Maira MehtabMaira Mehtab Oct 8, 2026 868 views

Question details

The user needs to resolve an invalid DNS zone file error in Microsoft 365 caused by conflicting autodiscover CNAME records.

How to Fix the Invalid DNS Zone File CNAME Error in Microsoft 365
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.
Before you start

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.

Solution 1Recommended

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.

1
Access DNS Management

Log in to your domain host or registrar's control panel and navigate to the DNS management or Zone Editor section.

2
Locate Conflicting Records

Search your DNS zone file for the 'autodiscover' hostname. Identify any existing A, AAAA, TXT, or MX records associated with this specific name.

3
Delete Incompatible Records

Carefully remove the conflicting A or AAAA records. Ensure no other record type is sharing the 'autodiscover' name.

4
Add Correct CNAME Record

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).

Remove Conflicting DNS Records and Update Autodiscover CNAME
DNS Propagation Time: DNS changes can take anywhere from a few minutes up to 48 hours to fully propagate across the internet.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installation file and follow the straightforward on-screen prompts.
  3. 3. Start Working Immediately: Launch WPS Office to instantly create, edit, and save documents with full Microsoft format compatibility.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.No complicated cloud admin centers or DNS configurations required.Lightweight software that runs smoothly on Windows, Mac, Linux, and mobile devices.Familiar user interface ensuring a seamless migration from Microsoft Office.
microsoft office alternative - wps office

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.