{"id":434,"date":"2025-08-28T13:30:07","date_gmt":"2025-08-28T09:30:07","guid":{"rendered":"https:\/\/www.24x7serverguard.com\/blog\/?p=434"},"modified":"2025-08-28T13:30:07","modified_gmt":"2025-08-28T09:30:07","slug":"how-to-configure-microsoft-office-365-dns-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.24x7serverguard.com\/blog\/knowledge\/how-to-configure-microsoft-office-365-dns-in-cpanel\/","title":{"rendered":"How to Configure Microsoft Office 365 DNS in cPanel"},"content":{"rendered":"\n<p>If you\u2019re using a domain registered with a third-party provider and managing it through <strong>cPanel<\/strong>, you can still connect it to <strong>Microsoft 365 (Office 365)<\/strong> for email, collaboration, and other services. To do this, you\u2019ll need to verify your domain and update its DNS records.<\/p>\n\n\n\n<p>\u26a0\ufe0f <strong>Important:<\/strong> Always add your domain to Office 365 <strong>before adding users<\/strong> so you don\u2019t need to configure them twice.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Verify Your Domain with Office 365<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to the Microsoft 365 Admin Center.<\/strong><\/li>\n\n\n\n<li>Go to <strong>Setup \u2192 Domains<\/strong> and click <strong>Add Domain<\/strong>.<\/li>\n\n\n\n<li>Enter your domain name and choose <strong>Add a TXT record<\/strong> to verify.<\/li>\n\n\n\n<li>Copy the TXT record provided (it will look like <code>MS=msXXXXXXXX<\/code>).<\/li>\n\n\n\n<li>Log in to <strong>cPanel<\/strong> and open the <strong>Zone Editor<\/strong>.<\/li>\n\n\n\n<li>Add the TXT record:\n<ul class=\"wp-block-list\">\n<li><strong>Name\/Host:<\/strong> @<\/li>\n\n\n\n<li><strong>Type:<\/strong> TXT<\/li>\n\n\n\n<li><strong>Value:<\/strong> MS=msXXXXXXXX<\/li>\n\n\n\n<li><strong>TTL:<\/strong> 3600 (1 hour)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Go back to the Microsoft 365 Admin Center and click <strong>Verify<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>\u2705 Once verified, you can remove the TXT record from cPanel.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Locate Microsoft 365 DNS Records<\/h2>\n\n\n\n<p>After verification:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log back into <strong>Microsoft 365 Admin Center<\/strong>.<\/li>\n\n\n\n<li>Go to <strong>Setup \u2192 Domains<\/strong> and select your verified domain.<\/li>\n\n\n\n<li>Under <strong>DNS Settings<\/strong>, you\u2019ll see the DNS records required for:\n<ul class=\"wp-block-list\">\n<li><strong>MX (Mail Exchange)<\/strong> \u2013 Routes email to Office 365.<\/li>\n\n\n\n<li><strong>CNAME<\/strong> \u2013 Enables services like Autodiscover, SIP, and Lync.<\/li>\n\n\n\n<li><strong>TXT (SPF)<\/strong> \u2013 Prevents email spoofing and spam.<\/li>\n\n\n\n<li><strong>SRV<\/strong> \u2013 Supports Skype for Business \/ Teams features.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"456\" src=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-1024x456.png\" alt=\"\" class=\"wp-image-435\" srcset=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-1024x456.png 1024w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-300x134.png 300w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-768x342.png 768w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image.png 1076w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Add Office 365 DNS Records in cPanel<\/h2>\n\n\n\n<p>Open your <strong>cPanel \u2192 Zone Editor<\/strong> and add the following records exactly as shown:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. MX Record (Email Routing)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Priority:<\/strong> 0<\/li>\n\n\n\n<li><strong>Destination:<\/strong> <code>domain-com.mail.protection.outlook.com<\/code> (replace <code>domain-com<\/code> with your domain, as provided by Microsoft)<\/li>\n\n\n\n<li><strong>TTL:<\/strong> 3600<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"226\" src=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-1.png\" alt=\"\" class=\"wp-image-436\" style=\"width:564px;height:auto\" srcset=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-1.png 649w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-1-300x104.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. CNAME Records<\/h3>\n\n\n\n<p><strong>CNAME Record 1 (Autodiscover):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: <code>autodiscover<\/code><\/li>\n\n\n\n<li>Value: <code>autodiscover.outlook.com<\/code><\/li>\n\n\n\n<li>TTL: 3600<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"420\" src=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-2.png\" alt=\"\" class=\"wp-image-437\" srcset=\"https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-2.png 882w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-2-300x143.png 300w, https:\/\/www.24x7serverguard.com\/blog\/wp-content\/uploads\/2025\/08\/image-2-768x366.png 768w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/figure>\n\n\n\n<p><strong>CNAME Record 2 (Lync Discover):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: <code>lyncdiscover<\/code><\/li>\n\n\n\n<li>Value: <code>webdir.online.lync.com<\/code><\/li>\n\n\n\n<li>TTL: 3600<\/li>\n<\/ul>\n\n\n\n<p><strong>CNAME Record 3 (SIP):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: <code>sip<\/code><\/li>\n\n\n\n<li>Value: <code>sipdir.online.lync.com<\/code><\/li>\n\n\n\n<li>TTL: 3600<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. TXT Record (SPF for Email Security)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Host\/Name:<\/strong> @<\/li>\n\n\n\n<li><strong>Value:<\/strong> <code>v=spf1 include:spf.protection.outlook.com -all<\/code><\/li>\n\n\n\n<li><strong>TTL:<\/strong> 3600<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. SRV Records<\/h3>\n\n\n\n<p><strong>SRV Record 1 (SIP TLS):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: <code>_sip._tls<\/code><\/li>\n\n\n\n<li>Priority: 100<\/li>\n\n\n\n<li>Weight: 1<\/li>\n\n\n\n<li>Port: 443<\/li>\n\n\n\n<li>Target: <code>sipdir.online.lync.com<\/code><\/li>\n\n\n\n<li>TTL: 3600<\/li>\n<\/ul>\n\n\n\n<p><strong>SRV Record 2 (SIP Federation TLS):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: <code>_sipfederationtls._tcp<\/code><\/li>\n\n\n\n<li>Priority: 100<\/li>\n\n\n\n<li>Weight: 1<\/li>\n\n\n\n<li>Port: 5061<\/li>\n\n\n\n<li>Target: <code>sipfed.online.lync.com<\/code><\/li>\n\n\n\n<li>TTL: 3600<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Allow DNS Propagation<\/h2>\n\n\n\n<p>After saving all records, DNS changes may take <strong>4\u201324 hours<\/strong> (sometimes up to 48 hours) to propagate globally. Once complete, your domain will be fully connected to Office 365, and emails will begin routing through Microsoft\u2019s secure servers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Key Benefits of Configuring Office 365 with cPanel<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Professional Email:<\/strong> Branded domain email powered by Microsoft Exchange.<\/li>\n\n\n\n<li><strong>Anywhere, Anytime Access:<\/strong> Work seamlessly across devices.<\/li>\n\n\n\n<li><strong>Built-in Security:<\/strong> Microsoft\u2019s spam filtering and advanced threat protection.<\/li>\n\n\n\n<li><strong>Collaboration Tools:<\/strong> Teams, Planner, and real-time document co-authoring.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u2705 That\u2019s it! Your domain is now fully integrated with Microsoft 365 while still being managed in <strong>cPanel<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re using a domain registered with a third-party provider and managing it through cPanel, you can still connect it to Microsoft 365 (Office 365) for email, collaboration, and other services. To do this, you\u2019ll need to verify your domain and update its DNS records. \u26a0\ufe0f Important: Always add your domain to Office 365 before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":438,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[451,447,449,450,448],"class_list":["post-434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-dns-propagation","tag-how-to-configure-microsoft-office-365-dns-in-cpanel","tag-locate-microsoft-365-dns-records","tag-office-365-dns-records-in-cpanel","tag-verify-your-domain-with-office-365"],"_links":{"self":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":439,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions\/439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media\/438"}],"wp:attachment":[{"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serverguard.com\/blog\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}