Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

MSOID in Microsoft 365: What It Is and How to Use It

26 min read
07.10.2025

An administrator opens the DNS zone for a domain and finds a record that looks like this:

msoid.example.com. 3600 IN CNAME clientconfig.microsoftonline-p.net.

A quick search can make the situation more confusing rather than clearer. Older Office 365 instructions often describe msoid as a normal Microsoft DNS record, while current Microsoft 365 documentation does not require the same CNAME for every cloud environment. Copying an old value into a new DNS zone can therefore be just as wrong as deleting a legacy record without checking why it exists.

MSOID in this context is a CNAME alias associated with Microsoft 365 identity configuration. It is not an MX record, does not receive email, is not an SPF record, and is not a Microsoft account. There is no single MSOID configuration that should be applied to every Microsoft 365 tenant.

Before changing the record, identify the Microsoft 365 environment and query the live DNS. Those two checks usually tell you whether MSOID should exist at all.

What Is an MSOID DNS Record and What Does It Actually Do?

An MSOID record is a CNAME alias in a domain's DNS zone that has been used by Microsoft 365 and older Office 365 configurations to direct clients toward Microsoft identity infrastructure. If you see msoid.example.com, you are looking at a DNS hostname under your own domain, not a mailbox, user account, license, or authentication server hosted inside your DNS zone.

A CNAME works as an alias. Instead of returning an IP address directly, DNS says that one hostname should be resolved through another hostname. A legacy configuration may look like this:

msoid.example.com. 3600 IN CNAME clientconfig.microsoftonline-p.net.

The left side belongs to the customer's domain. The right side belongs to Microsoft's infrastructure. That distinction matters because administrators sometimes see the Microsoft hostname in documentation, firewall logs, or an old DNS export and assume they must recreate the same msoid alias everywhere.

MSOID is not a mail-routing record. Removing or changing it does not directly change where MX delivers mail, and adding it does not configure SPF, DKIM, or DMARC. Those are separate DNS functions. For a separate mail-routing example, see MX Yandex.

You may also encounter the term expanded informally as "Microsoft Online ID". For administration, it is safer to treat msoid as the DNS label and verify its role from the Microsoft 365 configuration for the tenant rather than relying on the expansion of the acronym.

If you want to see what the record currently does, ask DNS directly:

nslookup -type=CNAME msoid.example.com

On Linux or macOS:

dig CNAME msoid.example.com
dig +short CNAME msoid.example.com

On Windows PowerShell:

Resolve-DnsName msoid.example.com -Type CNAME

If the response points to a Microsoft hostname, you have confirmed what exists in DNS. You have not yet proved that the record is required. That distinction is the basis for the rest of the troubleshooting.

Do You Still Need an MSOID CNAME in Microsoft 365 Today?

You should not add an MSOID CNAME to a Microsoft 365 domain simply because an old Office 365 guide contains one. Current requirements depend on the Microsoft cloud environment and on the DNS records requested for the specific tenant.

An old instruction can contain syntactically valid DNS and still describe the wrong Microsoft environment. That is why the target cannot be chosen from the age of the article, the familiarity of the hostname, or the fact that another company's domain uses the same record.

Microsoft environment What to do with msoid Expected target Administrative action
Microsoft 365 Worldwide Do not add a legacy MSOID record automatically Use tenant-specific requirements Check Microsoft 365 Admin Center before creating anything
Microsoft 365 operated by 21Vianet MSOID CNAME is used clientconfig.partner.microsoftonline-p.net.cn Use the record only for the appropriate 21Vianet environment
Microsoft 365 GCC High Existing MSOID CNAME should be removed None Follow GCC High DNS requirements
Unknown or legacy deployment Do not change it blindly Inspect the current value first Identify the tenant and cloud environment

Microsoft 365 Worldwide

For a normal Microsoft 365 Worldwide tenant, the old msoid -> clientconfig.microsoftonline-p.net pattern should not be treated as a universal requirement. The reliable source is the DNS configuration Microsoft currently presents for the tenant.

If Microsoft 365 Admin Center does not request msoid, do not create it "just in case". A missing CNAME is not automatically a fault when the tenant does not expect one.

Microsoft 365 Operated by 21Vianet

Microsoft's DNS guidance specifies an MSOID CNAME for Microsoft 365 operated by 21Vianet. The documented target is:

clientconfig.partner.microsoftonline-p.net.cn

This is environment-specific. Copying that target into a Microsoft 365 Worldwide domain because it looks newer than clientconfig.microsoftonline-p.net does not modernize the configuration. It puts the record in the wrong cloud context.

GCC High and Other Sovereign Microsoft Clouds

Sovereign Microsoft environments need their own DNS requirements. GCC High is a useful example because its guidance calls for removing an existing msoid CNAME. A record inherited from an older commercial Office 365 setup can therefore be something that needs to disappear rather than something that needs to be repaired.

Do not extrapolate the GCC High rule to every Microsoft cloud. Identify the environment first. Then apply that environment's DNS requirements.

Why Do Old Office 365 Guides Still Show msoid -> clientconfig.microsoftonline-p.net?

A DNS zone that has been in service for years can contain records that no longer appear in a new Microsoft 365 setup wizard. MSOID is one of them. Older Office 365 guidance commonly used this configuration:

msoid.example.com. IN CNAME clientconfig.microsoftonline-p.net.

That explains why the record is still found in old cPanel zones, registrar DNS, Windows DNS, ISPmanager exports, internal DNS, migration notes, and provider documentation. The presence of the record proves that it exists now. DNS itself does not tell you when an administrator created it or why.

That last point matters. You cannot look at a TTL of 3600 and conclude that the record is one hour old, for example. TTL controls caching. It is not a creation timestamp.

Source or scenario MSOID value you may see What it proves What to do now
Older Office 365 guide clientconfig.microsoftonline-p.net The value was used in older deployments Do not copy it without checking the current tenant
Existing DNS zone Legacy Microsoft target The record currently exists Find out whether the current tenant still expects it
21Vianet configuration clientconfig.partner.microsoftonline-p.net.cn The record may be required for that environment Confirm the tenant is operated by 21Vianet
New Worldwide tenant No MSOID record requested The legacy alias may not be required Follow the records provided by Microsoft for the tenant

Legacy does not automatically mean broken. A record can be old and still belong to a working configuration, or old and completely unnecessary.

If the record exists but nobody knows why, use a short investigation sequence before editing it:

  1. Record the current target with dig CNAME msoid.example.com.
  2. Record the current authoritative nameservers with dig NS example.com.
  3. Compare the record with the active Microsoft 365 tenant requirements.
  4. Check old DNS exports, migration tickets, change logs, or provider documentation if they are available.
  5. Do not infer the record's age from TTL or from how long the current DNS provider has hosted the zone.

If the tenant requires the same target, the old record may simply still be valid. If the current tenant does not require MSOID, you now have a legacy candidate that can be handled through a controlled change instead of guesswork.

How Can You Check Whether an MSOID Record Already Exists?

The DNS panel is not the source of truth. The authoritative DNS server is. A provider can show an MSOID record in its interface while the domain actually uses different nameservers, and a corporate resolver can return an internal value that differs from public DNS.

Start with a normal lookup and explicitly request the CNAME type.

Check MSOID with nslookup

On Windows:

nslookup -type=CNAME msoid.example.com

If a CNAME exists, look for its target. If the query reports that the name does not exist, do not create a record immediately. NXDOMAIN answers a DNS question: the queried name does not exist from the resolver's point of view. It does not answer the Microsoft 365 question of whether the record should exist.

Check MSOID with dig

With dig:

dig CNAME msoid.example.com

For a compact answer:

dig +short CNAME msoid.example.com

A legacy result might be:

clientconfig.microsoftonline-p.net.

A 21Vianet-specific result might be:

clientconfig.partner.microsoftonline-p.net.cn.

The command tells you where the alias points. It does not tell you whether the target is correct for the tenant.

Check MSOID in PowerShell

PowerShell provides a structured DNS result:

Resolve-DnsName msoid.example.com -Type CNAME

If PowerShell and an external DNS test disagree, check whether the machine is using internal DNS, a VPN, an Active Directory DNS zone, a policy-based resolver, or another split-DNS setup.

Task Windows Linux/macOS What to inspect
Check for a CNAME nslookup -type=CNAME msoid.example.com dig CNAME msoid.example.com The target hostname
Get a compact answer Resolve-DnsName msoid.example.com -Type CNAME dig +short CNAME msoid.example.com Whether a target is returned
Check authoritative DNS Query the authoritative server explicitly dig @ns1.example.net CNAME msoid.example.com The answer directly from the active DNS server

If the DNS panel says one thing and a public lookup says another, find the authoritative nameservers:

dig NS example.com

Then query one of them directly:

dig @ns1.example-dns.com CNAME msoid.example.com

A common migration problem looks exactly like this: the new DNS panel contains the correct CNAME, but the domain still points to the previous provider's nameservers. The record is correct in the interface and irrelevant on the Internet.

How Should You Add or Change MSOID When Microsoft Explicitly Requires It?

If Microsoft 365 explicitly requires an MSOID CNAME for your environment, create the record using the target provided for that tenant. Do not replace the target with a value copied from another company, an old Office 365 tutorial, or a generic DNS template.

A DNS panel normally asks for four values:

Field Value What to check
Type CNAME Do not create an A or TXT record instead
Name / Host msoid Check whether the panel automatically appends your domain
Target Value specified for the tenant Do not substitute a legacy Microsoft target
TTL Provider default or the value required by your policy An older cached answer may survive until its previous TTL expires

The host field causes more trouble than the CNAME itself. Some DNS panels expect only:

msoid

and append the zone name automatically. If you enter the complete hostname into such a panel, you can end up with:

msoid.example.com.example.com

The panel may save it without complaint. Microsoft querying msoid.example.com will never see that record.

How to Read a Successful CNAME Answer

After creating the record, a successful DNS answer may contain a line like this:

msoid.example.com. 300 IN CNAME target.example.net.

The fields are useful during troubleshooting:

  • msoid.example.com. is the record owner, the hostname being queried;
  • 300 is the remaining TTL in that answer;
  • IN is the Internet DNS class;
  • CNAME is the record type;
  • target.example.net. is the alias destination.

Do not focus only on whether an answer exists. The owner and target both have to be the values you intended.

What If the DNS Provider Says the Record Already Exists?

A CNAME cannot normally coexist at the same owner name with unrelated DNS data. If the panel refuses to create msoid, inspect the same hostname for A, AAAA, TXT, or another CNAME rather than repeatedly submitting the form.

Check individual record types if needed:

dig A msoid.example.com
dig AAAA msoid.example.com
dig TXT msoid.example.com
dig CNAME msoid.example.com

If another record already occupies the hostname, do not delete it merely to make the CNAME form accept your input. First identify why that record exists.

Do You Need a Trailing Dot?

Zone-file syntax often writes the target as a fully qualified name ending in a dot:

clientconfig.example.net.

Many web-based DNS panels do not require the final dot and normalize the value automatically. Others display the fully qualified form after saving. Follow the syntax of the provider you are using and verify the resulting public DNS instead of judging success from the text field alone.

After saving, query the public result:

dig CNAME msoid.example.com

or:

Resolve-DnsName msoid.example.com -Type CNAME

If the returned owner and target match the intended configuration, move on to authoritative and recursive DNS verification. Do not keep editing a record that is already correct.

How Do You Verify That an MSOID DNS Change Has Actually Propagated?

You added or changed the CNAME, the DNS panel shows it in green, but Microsoft still sees the old state. At that point the useful question is not "How long should I wait?" It is "Which DNS layer still returns the old answer?"

Check the chain in this order:

  1. Confirm which nameservers are authoritative for the domain.
  2. Query every relevant authoritative nameserver directly.
  3. Query one or more recursive resolvers.
  4. Compare the answers and TTLs.
  5. Only after DNS is correct, retest Microsoft 365 validation or activation.

Find the active domain nameservers (NS):

dig NS example.com

Authoritative DNS Is Wrong

Query an authoritative server directly:

dig @ns1.example-dns.com CNAME msoid.example.com

If that server returns the old target, NXDOMAIN, or no CNAME when the record should exist, the problem is still in the authoritative zone. Waiting for public DNS caches will not repair it.

If authoritative DNS does not have the record, Microsoft cannot see the correct record either.

A successful answer might contain:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12345
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; ANSWER SECTION:
msoid.example.com. 300 IN CNAME target.example.net.

The important pieces are status: NOERROR, an answer count that includes the CNAME, and the expected target in the answer section. The exact ID, flags, and remaining TTL can differ from query to query.

Authoritative DNS Is Correct but Recursive DNS Is Stale

If the authoritative server returns the new record, compare it with a normal recursive lookup:

dig CNAME msoid.example.com

You can also ask specific public resolvers:

dig @1.1.1.1 CNAME msoid.example.com
dig @8.8.8.8 CNAME msoid.example.com

If authoritative DNS returns the new value while a recursive resolver returns the old one, the zone change is already published. The recursive resolver may still have the older answer cached until its TTL expires.

Pressing Save again will not make that cache expire faster.

Negative answers can be cached as well. If msoid.example.com previously returned NXDOMAIN and you then created the record, a resolver may temporarily remember the negative result according to the zone's negative caching settings. That is why "I added the record but one resolver still says it does not exist" can be a cache issue even when the authoritative server is already correct.

Different Authoritative Servers Return Different Answers

Do not call this normal recursive propagation. If a domain has two authoritative servers and one returns the new CNAME while the other returns NXDOMAIN or an old target, the authoritative set itself is inconsistent.

Check each server directly:

dig @ns1.example-dns.com CNAME msoid.example.com
dig @ns2.example-dns.com CNAME msoid.example.com

For example:

ns1: msoid.example.com. 300 IN CNAME target.example.net.
ns2: NXDOMAIN

A recursive resolver may contact either authoritative server, so users can see intermittent or location-dependent results. Two authoritative servers returning different zone data is a DNS problem, not a browser cache problem.

Possible causes include incomplete zone synchronization, an outdated secondary server, editing only one independently managed nameserver, or a provider-side configuration problem. Fix the authoritative set first.

How to Distinguish Wrong Delegation from Slow Propagation

If you changed DNS in Provider B but dig NS example.com still shows nameservers from Provider A, the new zone is not authoritative yet. That is not CNAME propagation. The delegation still points to the old provider.

Query both sides directly:

dig @old-ns.example.net CNAME msoid.example.com
dig @new-ns.example.net CNAME msoid.example.com

This simple comparison tells you whether the new provider has the correct data and whether the Internet is actually using it.

Use the authoritative answer as your checkpoint. If authoritative DNS is wrong, fix the zone. If authoritative DNS is correct and only recursive resolvers disagree, investigate caching. If authoritative servers disagree with each other, fix the authoritative set.

The practical sequence is delegation, authoritative DNS, recursive DNS, Microsoft 365. Once you know which layer differs, "DNS propagation" stops being a vague explanation and becomes a specific state you can verify.

What Do NXDOMAIN, SERVFAIL, and Other MSOID DNS Results Mean?

When MSOID troubleshooting reaches DNS, the response code matters. NXDOMAIN, NOERROR with no CNAME, SERVFAIL, and a correct CNAME are different states and should lead to different next steps.

DNS result What it means Is MSOID proven broken? Next check
NOERROR with expected CNAME The queried DNS path returns the expected alias No Confirm authoritative DNS and move to Microsoft/client diagnostics if the problem remains
NXDOMAIN The queried name does not exist from that resolver's point of view Only if the tenant requires the record Check tenant requirements and authoritative DNS
NOERROR but no CNAME answer The query completed, but there is no CNAME RR for that name Not yet Check whether the name has another record type and whether CNAME is expected
SERVFAIL The resolver could not complete the lookup successfully No Investigate DNS infrastructure, delegation, authoritative availability, or DNSSEC
Wrong CNAME target The alias exists but points somewhere unexpected Potentially Compare the target with tenant-specific requirements
Different authoritative answers Authoritative servers are inconsistent DNS is not healthy enough to validate reliably Fix zone consistency before testing Microsoft again
Internal and external answers differ Split DNS or another resolver path may be in use Depends on which path the client uses Test from the affected client and from public DNS

NXDOMAIN Does Not Automatically Mean Misconfiguration

A response containing:

status: NXDOMAIN

means the queried DNS name does not exist according to the resolver that answered. If the tenant does not require MSOID, NXDOMAIN may be completely normal.

If the tenant does require MSOID, query the authoritative server directly:

dig @ns1.example-dns.com CNAME msoid.example.com

If the authoritative server also returns NXDOMAIN, the record is not present in the active zone. If the authoritative server returns the new CNAME but a recursive resolver returns NXDOMAIN, you may be looking at negative caching.

NOERROR Without a CNAME Is a Different State

A DNS response can have status: NOERROR and still contain no CNAME answer. That is not the same as NXDOMAIN. The name may exist, but not with the record type you requested.

Check common types separately:

dig CNAME msoid.example.com
dig A msoid.example.com
dig AAAA msoid.example.com
dig TXT msoid.example.com

If an A or another conflicting record occupies msoid.example.com, that can explain why a DNS panel refuses to create the CNAME. Do not delete the existing record until you know why it is there.

SERVFAIL Means the DNS Query Itself Failed

SERVFAIL should not be interpreted as "MSOID is missing". It means the resolver could not produce a successful DNS answer.

Possible areas to inspect include authoritative nameserver availability, broken delegation, DNSSEC validation problems, or another DNS infrastructure fault. Start by querying the authoritative server directly and comparing results from more than one resolver:

dig CNAME msoid.example.com
dig @1.1.1.1 CNAME msoid.example.com
dig @8.8.8.8 CNAME msoid.example.com

If several validating resolvers return SERVFAIL while authoritative queries behave differently, DNSSEC or delegation deserves attention. Do not "fix" the MSOID CNAME until the DNS failure itself is understood.

Microsoft 365 Activation Fails

If activation started failing after a DNS migration or after somebody restored an old zone template, compare the current msoid value with the requirements for the Microsoft environment.

For an environment where MSOID should not exist, document the current value before removing it:

Resolve-DnsName msoid.example.com -Type CNAME

After the controlled change, verify authoritative DNS again and retest activation. Do not remove unrelated Microsoft 365 records at the same time, or you will lose the ability to tell which change mattered.

The Custom Domain Is Reported as Unknown

If you see a target ending in:

clientconfig.partner.microsoftonline-p.net.cn

confirm that the tenant is actually operated by 21Vianet. A hostname belonging to Microsoft is not automatically the correct hostname for every Microsoft cloud.

Correct CNAME but Activation Still Fails

If the tenant expects MSOID, every authoritative server returns the correct CNAME, and public recursive resolvers resolve the same target, stop editing DNS.

At this point, MSOID is no longer the leading explanation for the failure.

Capture the actual activation or sign-in error and move to the next layer. Check client configuration, network filtering, proxy behavior, account state, identity policy, and reachability of the Microsoft endpoints required by the affected product.

DNS troubleshooting needs a finish line. A correct authoritative answer is one of the clearest signals that it is time to move on.

Internal DNS Returns One Value and Public DNS Another

Another case appears in organizations using Active Directory DNS, VPN DNS, or another split-DNS design. An office workstation may resolve:

msoid.example.com CNAME old-target.example.net.

while a public resolver returns:

msoid.example.com CNAME new-target.example.net.

Both observations can be real. The affected workstation follows its configured resolver path, so public DNS alone does not tell you what that client sees.

Test from the affected workstation and inspect which DNS server it is using. If an internal zone contains an old msoid record, changing public DNS will not update that internal copy.

Is msoid.example.com the Same Thing as clientconfig.microsoftonline-p.net?

No. msoid.example.com and clientconfig.microsoftonline-p.net are different DNS names with different administrative roles.

The first name belongs to a customer-controlled DNS zone. If configured as a CNAME, it acts as an alias. The second name belongs to Microsoft's service infrastructure.

Your domain

msoid.example.com
        |
        | CNAME
        |
        v
clientconfig.microsoftonline-p.net
        |
        | A / AAAA resolution
        |
        v
Microsoft infrastructure

You can test the two names separately:

Resolve-DnsName msoid.example.com -Type CNAME
Resolve-DnsName clientconfig.microsoftonline-p.net

The first query asks whether your domain publishes an MSOID alias and where it points. The second asks whether Microsoft's service hostname itself resolves.

This matters when reading firewall or proxy logs. Seeing traffic to clientconfig.microsoftonline-p.net does not prove that your domain needs:

msoid.example.com CNAME clientconfig.microsoftonline-p.net

One question is about network connectivity to Microsoft infrastructure. The other is about an alias in your DNS zone. Similar names, different layer.

If a firewall blocks a Microsoft endpoint, investigate network access. If Microsoft 365 reports a missing or incorrect custom-domain DNS record, investigate the customer DNS zone. Do not solve a network problem by adding a DNS alias that the tenant never requested.

How Do You Migrate an MSOID Record to Another DNS Provider Safely?

A common migration scenario looks like this: the new DNS provider contains the correct MSOID CNAME, the administrator changes something in Microsoft 365, but public lookups still show the old value. The reason is often simple. The domain still uses the old authoritative nameservers.

MSOID should therefore be verified at four points: before preparing the migration, on the new nameservers before delegation changes, immediately after the nameserver switch, and again after recursive caches have had time to refresh.

Before the Migration

Record the current delegation and current MSOID answer:

dig NS example.com
dig CNAME msoid.example.com

Then query the old authoritative servers directly:

dig @old-ns1.example.net CNAME msoid.example.com
dig @old-ns2.example.net CNAME msoid.example.com

Save the current target and TTL together with a zone export or another backup of the existing DNS configuration.

If the migration is planned in advance and your DNS policy allows it, lowering relevant TTLs before the change can reduce how long older positive answers remain cached. It does not instantly clear records already cached under the previous TTL, and changing a CNAME TTL does not by itself change the caching behavior of the parent delegation.

Check the New DNS Before Changing Nameservers

You do not have to wait until the delegation switch to discover that the new provider has the wrong record. Query its authoritative server directly:

dig @new-ns1.example.net CNAME msoid.example.com
dig @new-ns2.example.net CNAME msoid.example.com

Compare the old and new answers. If MSOID is supposed to remain, the new servers should return the approved target before they become authoritative for users.

If the current Microsoft 365 environment no longer requires the legacy record, decide that before the switch. Do not mechanically copy it and plan to "clean it up later" without documenting the decision.

After Changing Nameservers

Check which nameservers are now published:

dig NS example.com

Then query each new authoritative server:

dig @new-ns1.example.net CNAME msoid.example.com
dig @new-ns2.example.net CNAME msoid.example.com

If both return the expected answer, the new zone is internally consistent. Now compare public recursive resolvers:

dig @1.1.1.1 CNAME msoid.example.com
dig @8.8.8.8 CNAME msoid.example.com

If the new authoritative servers are correct but a recursive resolver still returns the old target, that is a cache state. If the authoritative servers themselves disagree, fix the zone before blaming propagation.

Do Not Forget Internal DNS

Organizations using Active Directory DNS or split DNS may have an internal copy of the zone. A public migration does not automatically update that internal zone.

After the public switch, test from an internal workstation as well:

nslookup -type=CNAME msoid.example.com

If internal clients still resolve the old target, inspect the internal DNS zone. Otherwise the migration can look perfect from the Internet while office users continue to follow stale internal data.

Migration runbook:

  1. Record the old NS set and MSOID answer.
  2. Verify the new DNS provider's MSOID record before delegation changes.
  3. Check every new authoritative server directly.
  4. Switch delegation.
  5. Confirm the published NS set.
  6. Compare authoritative and recursive answers.
  7. Check internal DNS if the organization uses split DNS.
  8. Retest Microsoft 365 only after DNS is in the expected state.

This is more reliable than exporting a zone, importing it somewhere else, and assuming every historical record deserves to survive the move.

Should You Delete an Existing MSOID Record or Leave It Alone?

If an MSOID CNAME has existed for years and everything appears to work, neither "leave it forever" nor "delete it because it is old" is a useful rule. Make the decision from the current tenant requirement and the live DNS state.

If the Tenant Requires MSOID

Check the current target:

dig CNAME msoid.example.com

If the target matches the tenant requirement and authoritative DNS is consistent, keep the record. There is nothing to clean up.

If the tenant requires MSOID but the target is wrong, document the existing value, correct the target, and verify every authoritative nameserver before retesting the Microsoft service.

If the Tenant Does Not Require MSOID

Do not delete the record only because it is absent from a generic article. Confirm that you are looking at the right tenant and environment first.

If the environment explicitly says the record should not exist, document the current state and remove it through a controlled change.

If the current environment simply does not list MSOID and the reason for the old record is unknown, check migration notes or previous configuration before removal. The purpose of this check is not to keep every historical record forever. It is to avoid changing an inherited production DNS zone without knowing what you are changing.

A Simple Decision Path

  1. Does the current Microsoft 365 tenant require MSOID?
    • If yes, compare the current target with the required target.
    • If the target is correct, keep the record.
    • If the target is wrong, correct it and verify DNS.
  2. If the tenant does not require MSOID, does the environment explicitly instruct you to remove it?
    • If yes, document the old state and remove it.
    • If no, investigate the legacy dependency before making the change.
  3. After a change, verify authoritative DNS first, then recursive DNS, then Microsoft 365 behavior.

Before deletion, keep enough information to roll back:

  • full hostname;
  • current CNAME target;
  • TTL;
  • authoritative nameservers;
  • tenant requirement;
  • time of the change.

For example:

dig NS example.com
dig CNAME msoid.example.com

If removing the record creates a confirmed regression and the original configuration was documented, rollback is straightforward. If you changed several Microsoft-related DNS records at the same time, it becomes much harder to tell which change caused the problem.

When Can You Consider MSOID Correctly Configured?

MSOID is correctly configured when the DNS state matches the requirements of the actual Microsoft 365 environment and the authoritative servers consistently return that state.

Use these criteria before closing the DNS part of the investigation:

  • The Microsoft 365 cloud environment has been identified.
  • You know whether the tenant expects MSOID to exist or not exist.
  • If MSOID is required, the CNAME target matches the tenant requirement.
  • Every authoritative nameserver returns the same expected state.
  • Recursive resolver differences are either gone or explained by caching.
  • No conflicting DNS data occupies the MSOID hostname.
  • Internal DNS has been checked where split DNS is in use.
  • Microsoft 365 validation, activation, or sign-in has been retested after DNS reached the expected state.

If the tenant expects a CNAME and authoritative DNS returns the correct target, stop changing the CNAME. If the environment expects no MSOID record and authoritative DNS confirms its removal, stop changing DNS.

At that point DNS is cleared.

If Microsoft 365 still fails, capture the actual error and continue with client, network, proxy, identity, or service diagnostics. Repeatedly rewriting a DNS record that already matches the authoritative state only adds noise to the investigation.

Frequently asked questions
MSOID is a CNAME alias used in some Microsoft 365 and older Office 365 configurations to direct clients toward Microsoft identity infrastructure. It is not a mail record or user account.
No. The requirement depends on the Microsoft 365 cloud environment and the tenant-specific DNS configuration. Do not add a legacy MSOID record automatically.
Use the target specified for the actual Microsoft 365 environment and tenant. For Microsoft 365 operated by 21Vianet, the documented target is clientconfig.partner.microsoftonline-p.net.cn.
Use dig CNAME msoid.example.com, nslookup -type=CNAME msoid.example.com, or Resolve-DnsName msoid.example.com -Type CNAME. Query authoritative nameservers directly if results disagree.
NXDOMAIN means the queried name does not exist from that resolver's point of view. It is only a problem if the Microsoft 365 tenant actually requires the MSOID record.
SERVFAIL means the resolver could not complete the DNS lookup successfully. Check delegation, authoritative DNS availability, DNSSEC, and resolver behavior before changing the MSOID record.
Only after confirming the current tenant does not require it or the environment explicitly says it should be removed. Record the old target, TTL, and authoritative nameservers before making the change.
Once authoritative DNS consistently returns the expected state, the problem may be outside DNS. Continue with client, network, proxy, identity, account, or Microsoft service diagnostics.
Related articles