Microsoft 365 Admin

How to add custom domain to Microsoft 365 and verify TXT on Defender for Identit

By Sai Kiran Pandrala · reviewed by Sai Kiran Pandrala, Editor Last verified: 2026-05-30

⚡ At a glance
BrandDefender for Identity
FamilyMicrosoft 365 Admin
CategoryMicrosoft
Guide typeHow To
Skill levelIntermediate

Why this matters

Add custom domain to microsoft 365 and verify txt on a Defender for Identity device is one of the highest-volume how-to searches for the Microsoft 365 Admin category. Most users find the menu path inconsistent across Defender for Identity model revisions, so this guide gives a generalised path plus model-specific notes.

Pre-requisites

Step-by-step

  1. Locate the setting. Open settings on your Defender for Identity device. For "add custom domain to Microsoft 365 and verify TXT", the option lives under one of: General, Advanced, Connectivity, Accessibility, or a Defender for Identity-specific menu. Check the Defender for Identity user manual for your exact model if you can't find it.
  2. Toggle the feature on. Confirm the on-screen prompt.
  3. Configure sub-options. Most features have 2-3 sub-options (mode, schedule, paired device). Pick values that match your real-world usage pattern.
  4. Save / apply. Some Defender for Identity models auto-save, others require an explicit Done / Save tap.
  5. Test live. Trigger the feature in a real scenario to confirm the configuration is correct.

Tips that save time

Common gotchas

Region / variant notes

Some Defender for Identity features are region-locked or only available on higher-tier SKUs. If your variant doesn't show "add custom domain to Microsoft 365 and verify TXT" at all, check the Defender for Identity model spec sheet to confirm support.

Frequently asked questions

How long should the recovery / setup take?

For most Defender for Identity Microsoft 365 Admin cases, allow 15-45 minutes the first time. Repeats are usually under 10 minutes once you know the menu path.

Will this exact procedure work on every Defender for Identity model?

The procedure reflects current Defender for Identity behaviour. Menu paths shift between service version generations; verify against the manual for your specific model + revision.

Is the procedure safe in production / live use?

Apply during a maintenance window where possible. Capture pre-change state. Defender for Identity doesn't usually publish rollback procedures, so make sure you can restore manually.

Does this affect my Defender for Identity support coverage?

Standard operation per the user manual + applying official service version updates does NOT void support coverage. Opening managed services, third-party repair, or unauthorised modifications can void support coverage, check before going further.

Related guides worth a look while you sort this one out:

References


Reference material, not professional advice. Validate with your vendor manual and follow local regulations.

What changed recently?

Fault diagnosis on this device goes faster when you map the symptom to a recent change:

The answer narrows the root cause to a manageable subset.

Safety + preconditions

Before any work on the affected device:

Quick verification

Before you walk away from the affected device fix, run through:

1. Reproduce the original trigger, does the issue reappear? 2. Check the device's status / health screen for any new alerts. 3. Confirm paired devices (app, hub, controller) reconnected. 4. Save / commit any configuration changes per the device's normal workflow. 5. Note the change in your maintenance log with date + service version version.

Escalation guide

For this hardware, the right escalation depends on impact:

More frequently asked questions

Will this void my support coverage?

Applying official service version updates and following the user manual will not affect support coverage. Opening managed services, jumping safety circuits, or using third-party parts can void support coverage in most jurisdictions.

Does this affect other devices on my network?

Generally no. The procedure is local to this device. Network-side changes (service version updates that affect TLS, SMB, or routing) are flagged explicitly in the steps.

Will the procedure work on the international variant?

Some features and service version paths are region-locked. Check the model spec sheet to confirm your variant supports the menu option referenced. If you're outside the US/EU, look for the regional support portal.

How long does this fix usually take?

Most users complete the steps in 20-45 minutes the first time, and 5-10 minutes on subsequent runs once the menu paths are familiar.

Should I update service version first or last?

Update service version first if a release note specifically mentions your symptom. Otherwise, finish the troubleshooting flow first, then update; that way you can isolate whether the update or the underlying fix solved it.

Field notes from real Microsoft 365 Admin incidents

When I work on add custom domain to Microsoft 365 and verify TXT on Defender for Identit the rhythm I lean on is the one I have built over years of these tickets. Message Trace gives the truth that the user's Sent folder cannot. if a mail did not leave the org, it will say so in plain English. Service Health is the first tab I open before I touch a single setting; half the M365 tickets I work on resolve themselves once I confirm Microsoft has already flagged the incident. Microsoft Graph PowerShell is the tool I now reach for over the legacy MSOnline module, because the legacy module's deprecation timeline is finally serious.

Tools I actually reach for

For add custom domain to Microsoft 365 and verify TXT on Defender for Identit on Defender for Identity the cheapest signal I can land usually comes from Office 365 SaRA tool, then Microsoft 365 Service Health dashboard, Microsoft 365 admin center, Microsoft 365 Apps admin center, MicrosoftTeams PowerShell module when Office 365 SaRA tool cannot see the layer the fault sits in, and Microsoft Graph PowerShell SDK for the cases where neither of those answers cleanly. That ordering is not academic. It matches the layers the failure tends to surface through, so the cheap signal lands first and the heavier tooling only comes out when the simpler answer does not hold up under scrutiny.

Verification I run before I close the ticket

Before I mark add custom domain to Microsoft 365 and verify TXT on Defender for Identit resolved on a Defender for Identity unit, the verification loop below is what I actually run. Each step proves a different layer is green, and the order matters - the cheap checks gate the more expensive ones.

Connect-MgGraph -Scopes 'Directory.Read.All'; Get-MgUser -Top 5

If that one comes back clean, move to the next check. If it does not, stop and dig in there before layering more verification on top of a red signal.

Get-MgServicePrincipal -Filter "displayName eq 'Office 365 Management APIs'"

If that one comes back clean, move to the next check. If it does not, stop and dig in there before layering more verification on top of a red signal.

az ad signed-in-user show  # for cross-check against Entra

If that one comes back clean, move to the next check. If it does not, stop and dig in there before layering more verification on top of a red signal.

Connect-ExchangeOnline; Get-MessageTrace -StartDate (Get-Date).AddDays(-1)

Only when every line above runs clean do I close the ticket and update the runbook with the timestamps.

Where I check first when the docs disagree

When two sources contradict each other on a Microsoft 365 Admin detail, the disambiguation order I lean on is stable. I usually start at status.office.com for the ground-truth view on Microsoft 365 Admin. I usually start at admin.microsoft.com for the ground-truth view on Microsoft 365 Admin. I usually start at techcommunity.microsoft.com/category/microsoft365 for the ground-truth view on Microsoft 365 Admin. Random blog posts and reseller wikis are signal, not ground truth, and I treat them as such until the references above either confirm or contradict the claim.

Pitfalls I have walked into on this exact path

The shortcuts that look smart on add custom domain to Microsoft 365 and verify TXT on Defender for Identit have a habit of biting back. The pitfalls below are the ones I have personally walked into on a Defender for Identity unit, not things I read about. Microsoft Graph PowerShell is the tool I now reach for over the legacy MSOnline module, because the legacy module's deprecation timeline is finally serious. Service Health is the first tab I open before I touch a single setting; half the M365 tickets I work on resolve themselves once I confirm Microsoft has already flagged the incident. Message Trace gives the truth that the user's Sent folder cannot, if a mail did not leave the org, it will say so in plain English. When in doubt I revert to the slower path that the manual prescribes - the time I save by skipping it is always smaller than the time I spend cleaning up afterwards.

What I tell the next on-call

When I hand add custom domain to Microsoft 365 and verify TXT on Defender for Identit off to the next person on rotation, the three lines I leave in the runbook are these. First, the symptom signature for Defender for Identity on the Microsoft 365 Admin family - not a paraphrase, the exact string that surfaces. Second, the diagnostic that gave the highest signal in the least time. Third, the exact verification command whose green output justified closing the ticket. That trio is what turns a one-off fix into a runbook entry the next engineer can use without paging me at three in the morning.

I also add a one-line note on the cost of getting this wrong. For add custom domain to Microsoft 365 and verify TXT on Defender for Identit on a Defender for Identity unit, the cost is rarely the replacement part. It is the downtime, the second site visit, and the trust deficit you spend with whoever owns the asset when the fix does not hold. That framing keeps the next on-call from choosing the cheap-looking shortcut that ends up costing the most in elapsed hours and goodwill.