Редактиране

Споделяне чрез


Connect your DNS records at GoDaddy to Microsoft 365

Check the Domains FAQ if you don't find what you're looking for.

If GoDaddy is your DNS hosting provider, follow the steps in this article to verify your domain and set up DNS records for email, Teams, and so on.

Before you begin

You have two options for setting up DNS records for your domain:

  • Use Domain Connect If you haven't set up your domain with another email service provider, use the Domain Connect steps to automatically verify and set up your new domain to use with Microsoft 365.

    OR

  • Use the manual steps Verify your domain using the manual steps below and choose when and which records to add to your domain registrar. This allows you to set up new MX (mail) records, for example, at your convenience.

Use Domain Connect to verify and set up your domain

Follow these steps to automatically verify and set up your GoDaddy domain with Microsoft 365:

  1. In the Microsoft 365 admin center, select Settings > Domains, and select the domain you want to set up.

  2. Select the three dots (more actions) > choose Start setup.

    Select Start setup.

  3. On the How do you want to connect your domain? page, select Continue.

  4. On the Add DNS records page, select Add DNS records.

  5. On the GoDaddy login page, sign in to your account, and select Authorize.

    This completes your domain setup for Microsoft 365.

Create DNS records with manual setup

After you add these records at GoDaddy, your domain will be set up to work with Microsoft services.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Add a TXT record for verification

Before you use your domain with Microsoft, we have to make sure that you own it. Your ability to log in to your account at your domain registrar and create the DNS record proves to Microsoft that you own the domain.

Note

This record is used only to verify that you own your domain; it doesn't affect anything else. You can delete it later, if you like.

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select DNS next to the domain you want to verify.

    Select DNS.

  3. Under DNS Records, select ADD on the top right corner.

    Screenshot of where you select Add to add a domain verification TXT record.

  4. Select TXT option from the filter box.

    Select TXT from the Type drop-down list for the domain verification TXT record.

  5. In the boxes for the new record, type or copy and paste the values from the table.

    Type Name Value TTL
    TXT @ MS=ms XXXXXXXX
    Note: This is an example. Use your specific Destination or Points to Address value here, from the table. How do I find this?
    1 hour

    Fill in the values from the table for the domain verification TXT record.

  6. Select Save.

    Screenshot of where you select Save to add a domain verification TXT record.

    Wait a few minutes before you continue, so that the record you just created can update across the Internet.

Now that you've added the record at your domain registrar's site, you'll go back to Microsoft and request the record. When Microsoft finds the correct TXT record, your domain is verified.

To verify the record in Microsoft 365:

  1. In the admin center, go to the Settings > Domains.

  2. On the Domains page, select the domain that you're verifying, and select Start setup.

     Diagram showing Select Start setup.

  3. Select Continue.

  4. On the Verify domain page, select Verify.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Add an MX record so email for your domain will come to Microsoft

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the DNS.

    Screenshot showing Select DNS.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add an MX record.

  4. Choose MX option from the filter box.

    Drop down menu showing MX record selected.

  5. In the boxes for the new record, type or copy and paste the values from the following table.

    (Choose the Type and TTL values from the drop-down list.)

    Type Name Priority Value TTL
    MX @ 10
    For more information about priority, see What is MX priority?
    <domain-key>.mail.protection.outlook.com
    Note: Get your <domain-key> from your Microsoft account. How do I find this?
    1 hour

    Screenshot showing paste values for the MX record.

  6. Select Save.

Add the CNAME record required for Microsoft

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the three dots next to the domain you want to verify, and then select DNS.

    Screenshot displaying Select DNS.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add a CNAME record.

  4. Choose CNAME from the drop-down list.

    Screenshot showing Select CNAME from the Type drop-down list.

  5. Create the CNAME record.

    In the boxes for the new record, type or copy and paste the values from the first row of the following table.

    (Choose the TTL value from the drop-down list.)

    Type Name Value TTL
    CNAME autodiscover autodiscover.outlook.com 1 hour

    Screenshot to paste the values for the CNAME record.

  6. Select Save.

Add a TXT record for SPF to help prevent email spam

Important

You cannot have more than one TXT record for SPF for a domain. If your domain has more than one SPF record, you'll get email errors, as well as delivery and spam classification issues. If you already have an SPF record for your domain, don't create a new one for Microsoft. Instead, add the required Microsoft values to the current record so that you have a single SPF record that includes both sets of values.

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the three dots next to the domain you want to verify, and then select DNS.

    Screenshot showing Select DNS from the drop-down list.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add an SPF TXT record.

  4. Choose TXT from the drop-down list.

    Select TXT from the Type drop-down list for the SPF TXT record.

  5. In the boxes for the new record, type or copy and paste the following values.

    (Choose the TTL value from the drop-down lists.)

    Type Name Value TTL
    TXT @ v=spf1 include:secureserver.net -all
    Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.
    1 hour

    Fill in the values from the table for the SPF TXT record.

  6. Select Save.

Advanced option: Microsoft Teams

Only select this option if your organization uses Microsoft Teams. Teams needs 4 records: 2 SRV records for user-to-user communication, and 2 CNAME records to sign-in and connect users to the service.

Add the two required SRV records

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the three dots next to the domain you want to verify, and then select DNS.

    Screenshot showing select DNS from the drop-down list.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add an SRV record.

  4. Choose SRV from the drop-down list.

    Screenshot showing SRV selected from the Type drop-down list.

  5. Create the first SRV record.

    In the boxes for the new record, type or copy and paste the values from the first row of the following table.

    (Choose the Type and TTL values from the drop-down lists.)

    Type Service Protocol Name Value Priority Weight Port TTL
    SRV _sip _tls @ sipdir.online.lync.com 100 1 443 1 Hour
    SRV _sipfederationtls _tcp @ sipfed.online.lync.com 100 1 5061 1 Hour

    Fill in the values from the table for the SRV records.

  6. Select Save.

  7. Add the other SRV record by choosing the values from the second row of the table.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Add the two required CNAME records for Microsoft Teams

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the three dots next to the domain you want to verify, and then select Manage DNS.

    Screenshot showing Select Manage DNS from the drop-down list.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add CNAME records for Microsoft Teams.

  4. Choose CNAME from the drop-down list.

    Screenshot showing select CNAME from the Type drop-down list.

  5. In the empty boxes for the new records, type or copy and paste the values from the first row in the following table.

    Type Name Value TTL
    CNAME sip sipdir.online.lync.com.
    This value MUST end with a period (.)
    1 Hour
    CNAME lyncdiscover webdir.online.lync.com.
    This value MUST end with a period (.)
    1 Hour

    Fill in the values from the table for the CNAME records for Microsoft Teams.

  6. Select Save.

  7. Add the other CNAME record by choosing the values from the second row of the table.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

Advanced option: Intune and Mobile Device Management for Microsoft 365

This service helps you secure and remotely manage mobile devices that connect to your domain. Mobile Device Management needs 2 CNAME records so that users can enroll devices to the service.

Add the two required CNAME records Mobile Device Management

  1. To get started, go to your domains page at GoDaddy by using this link.

    If you're prompted to log in, use your login credentials, select your login name in the upper right, and then select My Products.

  2. Under Domains, select the three dots next to the domain you want to verify, and then select DNS.

    Screesnhot showing Select DNS from the drop-down list.

  3. Under Records, select ADD.

    Screenshot of where you select Add to add CNAME records for Mobile Device Management.

  4. Choose CNAME from the drop-down list.

    Screenshot to Select CNAME from the Type drop-down list.

  5. In the empty boxes for the new records, type or copy and paste the values from the first row in the following table.

    Type Name Value TTL
    CNAME enterpriseregistration enterpriseregistration.windows.net.
    This value MUST end with a period (.)
    1 Hour
    CNAME enterpriseenrollment enterpriseenrollment-s.manage.microsoft.com.
    This value MUST end with a period (.)
    1 Hour

    Fill in the values from the table for the CNAME records for Mobile Device Management.

  6. Select Save.

  7. Add the other CNAME record by choosing the values from the second row of the table.

Note

Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. If you're having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.