Configuring a Domain Name – Implementing and Managing a Microsoft 365 Tenant

In order to be compatible with Microsoft 365, a DNS service must support configuring the following types of records:

  • Canonical Name (CNAME): CNAME records are alias records for a domain, allowing a name to point to another name as a reference. For example, let’s say you have a website named www.contoso.com that resolves to an IP address of 1.2.3.4. Later, you want to start building websites for na.contoso.com and eu.contoso.com on the same web server. You might implement a CNAME record for na.contoso.com to point to www.contoso.com.
  • Text (TXT): A TXT record is a DNS record used to store unstructured information. Request for Comments (RFC) 1035 (https://tools.ietf.org/html/rfc1035) specifies that the value must be text strings and gives no specific format for the value data. Over the years, Sender Policy Framework (SPF), DomainKeys Identified Mail (DKIM), and other authentication and verification data have been published as TXT records. In addition to SPF and DKIM, the Microsoft 365 domain addition process requires the administrator to place a certain value in a TXT record to confirm ownership of the domain.
  • Service Locator (SRV): An SRV record is used to specify a combination of a host in addition to a port for a particular internet protocol or service.
  • Mail Exchanger (MX): The MX record is used to identify which hosts (servers or other devices) are responsible for handling mail for a domain.

In order to use a custom domain (sometimes referred to as a vanity domain) with Microsoft 365, you’ll need to add it to your tenant.

To add a custom domain, follow these steps:

  1. Navigate to the Microsoft 365 admin center (https://admin.microsoft.com) and log in.
  • Expand Settings and select Domains.

Figure 1.6 – Domains page of the Microsoft 365 admin center

  • Click Add domain.
  • On the Add domain page, enter the custom domain name you wish to add to your Microsoft 365 tenant. Select Use this domain to continue.

Figure 1.7 – Add domain page

12       Implementing and Managing a Microsoft 365 Tenant

  • If your domain is registered at a host that supports Domain Connect, you can provide

your credentials to the Microsoft 365 Add domain wizard and click Verify. Microsoft will automatically configure the necessary domain records and complete the entire DNS setup for you. You can also select More options to see all of the potential verification methods available, as shown in Figure 1.8:

Figure 1.8 – Verify domain ownership

If you choose any of the additional verification options (such as Add a TXT record to the domain’s DNS records), you’ll need to manually add DNS records at your DNS service provider.Microsoft provides the value configuration parameters necessary for you to configure with your own service provider. After entering the values in your service provider’s DNS console, you can come back to the wizard and select Verify, as shown in Figure 1.9:

Figure 1.9 – Completing verification records manually

14       Implementing and Managing a Microsoft 365 Tenant

  • If using a registrar that supports Domain Connect, enter the credentials for your registrar. When ready, click Connect. See Figure 1.10:

Figure 1.10 – Authorizing Domain Connect with GoDaddy to update DNS records

  • Select Let Microsoft add your DNS records (recommended)to have the Microsoft 365 wizard update your organization’s DNS records at the registrar; however, if you are going to be configuring advanced scenarios such as Exchange Hybrid for mail coexistence and migration or have other complex requirements, you may want to consider managing the DNS records manually or opting out of select services. Click Continue.

Figure 1.11 – Connecting domain to Microsoft 365

  • Choose whether to allow Microsoft to add DNS records. Expand theAdvanced options dropdown:
  1. The first checkbox, Exchange and Exchange Online Protection, manages DNS settings for Outlook and email delivery. If you have an existing Exchange Server deployment on-premises (or another mail service solution), you should clear this checkbox before continuing. You’ll need to come back to configure DNS settings to establish hybrid connectivity correctly.

The default selected option means that Microsoft will make the following updates to your organization’s DNS:

  1. Your organization’s MX record will be updated to point to Exchange Online Protection.
  1. The Exchange Autodiscover record will be updated to point to autodiscover.outlook.com.
  1. Implementing and Managing a Microsoft 365 Tenant
  1. Microsoft will update your organization’s SPF record withv=spf1 include:spf. protection.outlook.com -all.

Figure 1.12 – Adding DNS records

  1. The second setting, Skype for Business, will configure DNS settings for Skype for Business. If you have an existing Skype for Business Online deployment or you’re using Skype for Business on-premises, you may need to clear this box until you verify your configuration:
  1. Microsoft will add two SRV records: _sip._tls.@<domain> and

_sipfederationtls._tcp@<domain>.

  1. Microsoft will also add two CNAMEs for Lync: sip.<domain> to point to sipdir. online.lync.com and lyncdiscover.<domain> to point to webdir. online.lync.com.
  1. The third checkbox, Intune and Mobile Device Management for Microsoft 365, configures applicable DNS settings for device registration. It is recommended to leave this enabled:
  1. Microsoft will add the following CNAME entries to support mobile device registration and management: enterpriseenrollment.<domain> to enterpriseenrollment.manage.microsoft.com and enterpriseregistration.<domain> to enterpriseregistration. windows.net.
  • Click Add DNS records.
  1. If prompted, click Connect to authorize Microsoft to update your registrar’s DNS settings.
  1. Click Done to exit the wizard or View all domains to go back to the Domains page if you need to add more domains.

You can continue adding as many domains as you need (up to the tenant maximum of 900 domains).

Adding a Domain Deep Dive

To review alternative steps and more information about the domain addition process, see https://learn.microsoft.com/en-us/microsoft-365/admin/setup/ add-domain.

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these