Courseiva

DNS Record for Domain Ownership Verification

An administrator adds the custom domain 'fabrikam.com' to a new Microsoft 365 tenant. After adding the domain, the status shows 'Pending verification'. Which type of DNS record must be added to the public DNS zone to complete domain ownership verification?

Quick Answer

The answer is a TXT record. This is the correct choice because Microsoft 365 uses a TXT record containing a unique verification value, which you add to the public DNS zone of your domain, to prove you control the domain; only the domain owner can modify DNS records, so successfully adding this record confirms ownership. On the MS-102 exam, this concept tests your understanding of the domain onboarding process, where the status “Pending verification” is a common trap that leads candidates to mistakenly choose MX or CNAME records for mail routing instead. Remember, TXT records are for verification and proof of control, while MX handles mail flow. A simple memory tip: “TXT for Trust” — the TXT record establishes trust that you own the domain before any services are configured.

⚠ Common exam trap

Test-takers frequently confuse the verification TXT record with other TXT-based records like SPF or DKIM, or assume any DNS record type can be used for verification, but Microsoft specifically requires a TXT record with a unique token for domain ownership proof.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

TXT record

To verify domain ownership in Microsoft 365, you must add a TXT record with a specific verification value provided by the Microsoft 365 admin center to the public DNS zone. This proves you control the domain because only the domain owner can modify DNS records. Other record types like MX, CNAME, or SPF are used for mail routing or service configuration, not for ownership verification.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    MX record

    Why it's wrong here

    Ownership verification requires a TXT record holding the Microsoft-generated value; an MX record only directs mail delivery to a mail host and is added after verification when configuring Exchange Online mail flow. It cannot satisfy the pending verification state.

  • ✓

    TXT record

    Why this is correct

    Microsoft 365 proves domain ownership by reading a unique TXT value from the domain's public DNS zone. The tenant compares the returned string against the supplied token, and only a matching TXT record moves the domain from Pending verification to verified.

  • ✗

    CNAME record

    Why it's wrong here

    Microsoft 365 proves domain ownership with a TXT record containing the verification string, not a CNAME. CNAME records are used later for services such as Autodiscover, or for MX/SPF delegation in some configurations, so they address service routing rather than the pending ownership check.

  • ✗

    SPF record

    Why it's wrong here

    SPF is a TXT record authorising sending hosts for email authentication, added when configuring mail flow, not for proving domain ownership. Microsoft 365 verification reads a TXT record containing the unique verification string, so an SPF entry leaves the domain pending.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every MS-102 question from scratch — 712 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on MS-102

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. An administrator adds the custom domain 'contoso.com' to a new Microsoft 365 tenant and needs to verify domain ownership. Which type of DNS record must be added to the public DNS zone to complete verification?

easy
  • A.MX record
  • ✓ B.TXT record
  • C.CNAME record
  • D.record

Why B: To verify domain ownership in Microsoft 365, you must add a TXT record with a specific verification string provided by the Microsoft 365 admin center to the public DNS zone. The TXT record is used because it can store arbitrary text data, which the Microsoft 365 domain verification service queries to confirm that you control the domain. This is the standard method defined in RFC 1035 for domain ownership verification.

You might also like

Similar MS-102 questions

Written by Johnson Ajibi, MSc IT Security

Security Systems Architect · founder of Courseiva

This MS-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MS-102 exam.