Office
Sign in

Create DNS records at Domainnameshop for Office 365

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

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

After you add these records at Domainnameshop, your domain will be set up to work with Office 365 services.

To learn about webhosting and DNS for websites with Office 365, see Use a public website with Office 365.

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 Office 365, 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 Office 365 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 in Domainnameshop by using this link. You'll be prompted to log in.  

    Login screen in Domainnameshop

  2. Choose My Domains.  

    My domains tab selected in Domainnameshop

  3. Choose the domain that you want to edit.  

    Active domain selected in Domainnameshop

  4. Choose the DNS records tab.  

    DNS records tab highlighted in Domainnameshop

  5. Choose Show advanced settings.  

    Show advanced settings in Domainnameshop

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

    Host name

    TTL

    RR Type

    Data

    (leave blank)

    1 hour

    TXT

    MS=msXXXXXXXX

    Note: This is an example. Use your specific Destination or Points to Address value here, from the table in Office 365.
    How do I find this?

    TXT record in Domainnameshop

  7. Choose the + (Add) button.

  8. 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 Office 365 and request Office 365 to look for the record.

When Office 365 finds the correct TXT record, your domain is verified.

  1. Choose Setup > Domains.

  2. On the Domains page, choose the domain that you are verifying.

    Domain name selected in Office 365 Admin Center

  3. On the Setup page, choose Start setup.

    Start setup button

  4. On the Verify domain page, choose Verify.

    Verify button

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

  1. To get started, go to your domains page in Domainnameshop by using this link. You'll be prompted to log in.  

    Login screen in Domainnameshop

  2. Choose My Domains.  

    My domains in Domainnameshop

  3. Choose the domain that you want to edit.  

    A domain selected in My domains in Domainnameshop

  4. Choose the DNS records tab.  

    DNS records tab in Domainnameshop

  5. Choose Show advanced settings.  

    Show advanced settings for DNS records in Domainnameshop

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

    Host name

    TTL

    RR Type

    Parameters (Priority)

    Data (Target)

    (leave blank)

    1 hour

    MX (Mail Exchanger)

    10

    For more information about priority, see What is MX priority?

    <domain-key>.mail.protection.outlook.com

    Note: Get your <domain-key> from your Office 365 portal account.
    How do I find this?

    MX record in Domainnameshop

  7. Choose the + (Add) button.  

    Add MX record in Domainnameshop

  8. If there are any other MX records in the list, delete each one by choosing the trash can icon next to it.

Add the CNAME records that are required for Office 365

  1. To get started, go to your domains page in Domainnameshop by using this link. You'll be prompted to log in.  

    Login screen in Domainnameshop

  2. Choose My Domains.  

    My domains tab in Domainnameshop

  3. Choose the domain that you want to edit.  

    Domain name selected in Domainnameshop

  4. Choose the DNS records tab.  

    Domainnameshop DNS records tab

  5. Choose Show advanced settings. This link toggles between two modes: normal settings and advanced settings. If you see Show normal settings, you are already in the advanced settings mode.

    Show advanced settings in Domainnameshop

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

    Host name

    TTL

    RR Type

    Data (Target)

    autodiscover

    1 hour

    CNAME

    autodiscover.outlook.com

    autodiscover

    1 hour

    CNAME

    sipdir.online.lync.com

    autodiscover

    1 hour

    CNAME

    webdir.online.lync.com

    msoid

    1 hour

    CNAME

    clientconfig.microsoftonline-p.net

    enterpriseregistration

    1 hour

    CNAME

    enterpriseregistration.windows.net

    enterpriseenrollment

    1 hour

    CNAME

    enterpriseenrollment.manage.microsoft.com

    RR record values in Domainnameshop

  7. Choose the + (Add) button.

  8. Repeat the previous steps to create the other five CNAME records. For each record, type or copy and paste the values from the next row of the table above into the boxes for that record.

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 Office 365. Instead, add the required Office 365 values to the current record so that you have a single SPF record that includes both sets of values. Need examples? Check out these details and sample SPF records. To validate your SPF record, you can use one of these SPF validation tools.

  1. To get started, go to your domains page in Domainnameshop by using this link. You'll be prompted to log in.  

    Login screen in Domainnameshop

  2. Choose My Domains.  

    My domains in Domainnameshop

  3. Choose the domain that you want to edit.  

    Domain name selected in Domainnameshop

  4. Choose the DNS records tab.  

    DNS records tab in Domainnameshop

  5. Choose Show advanced settings. This link toggles between two modes: normal settings and advanced settings. If you see Show normal settings, you are already in the advanced settings mode.  

    Show advanced settings for DNS records in Domainnameshop

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

    Host name

    TTL

    RR Type

    Data (Target)

    (leave blank)

    1 hour

    TXT

    v=spf1 include:spf.protection.outlook.com -all

    Note: We recommend copying and pasting this entry, so that all of the spacing stays correct.

    TXT record in DNS record in Domainnameshop

  7. Choose the + (Add) button.

Add the two SRV records that are required for Office 365

To get started, go to your domains page in Domainnameshop by using this link. You'll be prompted to log in.

  1. Choose My Domains.  

    My Domains in Domainnameshop

  2. Choose the domain that you want to edit.  

    Select the domain in Domainnameshop

  3. Choose the DNS records tab.  

    DNS records tab in Domainnameshop

  4. Choose Show advanced settings. This link toggles between two modes: normal settings and advanced settings. If you see Show normal settings, you are already in the advanced settings mode.  

    Show advanced settings for DNS record in Domainnameshop

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

    Host name

    TTL

    RR Type

    Parameters (Priority)

    Parameters (Weight)

    Parameters (Port)

    Data

    _sip._tls

    1 hour

    SRV (Service)

    100

    1

    443

    sipdir.online.lync.com

    _sipfederationtls._tcp

    1 hour

    SRV (Service)

    100

    1

    5061

    sipfed.online.lync.com

    SRV record in Domainnameshop

  6. Choose the + (Add) button.

  7. Repeat the previous steps to create the other SRV record. Type or copy and paste the values from the second row of the table above into the boxes for the second record

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.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×