Change nameservers at any domain registrar to set up Office 365

We're updating this article! Send an email and let us know what you'd like to see.
Email: Office 365 Admin Content Feedback

Telephone

Want some help?                                   

Call support.

Follow these instructions to add and set up your domain in Office 365 so your services like email and Skype for Business Online will use your own domain name. To do this, you'll verify your domain, and then change your domain's nameservers to Office 365 so the correct DNS records can be set up for you. Follow these steps if the following three statements describe your situation:

Here’s what you need to do. (Need more help? Get support.)

Add a TXT or MX record for verification

Note:  You will create only one or the other of these records. TXT is the preferred record type, but some DNS hosting providers don’t support it, in which case you can create an MX record instead.

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.

Find the area on your DNS hosting provider’s website where you can create a new record.
  1. Sign in to your DNS hosting provider’s website.

  2. Choose your domain.

  3. Find the page where you can edit DNS records for your domain.

Create the record.
  1. Depending on whether you are creating a TXT record or an MX record, do one of the following:

    • If you create a TXT record, use these values:

      Record Type

      Alias or Host Name

      Value

      TTL

      TXT

      Do one of the following: Type @ or leave the field empty or type your domain name.

      Note: Different DNS hosts have different requirements for this field.

      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?

      Set this value to 1 hour or to the equivalent in minutes (60), seconds (3600), etc.

    • If you create an MX record, use these values:

      Record Type

      Alias or Host Name

      Value

      Priority

      TTL

      MX

      Type either @ or your domain name.

      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?

      For Priority, to avoid conflicts with the MX record used for mail flow, use a lower priority than the priority for any existing MX records.

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

      Set this value to 1 hour or to the equivalent in minutes (60), seconds (3600), etc.

  2. Save the record.

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. Go to the Domains page.

  2. On the Manage domains page, select the domain that you are verifying and then, in the Action column for that domain, choose Start setup.

    O365-BP-Verify-1-2

  3. On the Add this TXT record to show you own domain_name page, choose Okay, I've added the record.

    O365-BP-Verify-1-3

  4. Choose Next.

    O365-BP-Verify-1-4

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.

Back to top

Change your domain’s nameserver (NS) records

When you get to the last step of the domains setup wizard in Office 365, you have one task remaining. To set up your domain with Office 365 services, like email, you change your domain’s nameserver (or NS) records at your domain registrar to point to the Office 365 primary and secondary nameservers. Then, because Office 365 hosts your DNS, the required DNS records for your services are set up automatically for you. You can update the nameserver records yourself by following the steps your domain registrar may provide in the help content at their website. If you’re not familiar with DNS, contact support at the domain registrar.

To change your domain’s nameservers at your domain registrar’s website yourself, follow these steps:

  1. Find the area on the domain registrar’s website where you can edit the nameservers for your domain.

  2. Create two nameserver records, or edit the existing nameserver records to match the following values:

    First nameserver

    ns1.bdm.microsoftonline.com

    Second nameserver

    ns2.bdm.microsoftonline.com

    Tip: You should use at least two nameserver records. If there are any other nameservers listed, you can either delete them, or change them to ns3.bdm.microsoftonline.com and ns4.bdm.microsoftonline.com.

  3. Save your changes.

Caution: When you change your domain’s NS records to point to the Office 365 nameservers, all the services that are currently associated with your domain are affected. If you skipped any steps of the wizard, such as adding email addresses, or if you’re using your domain for blogs, shopping carts, or other services, there are additional steps that are required. Otherwise this change could result in service downtime, such as lack of email access or your current website being inaccessible.

For example, here are some additional steps that might be required for email and website hosting:

Note: Your nameserver record updates may take up to several hours to update across the Internet's DNS system. Then your Office 365 email and other services will be all set to work with your domain.

Back to top

Still need help?

Get help from the Office 365 community forums Admins: Sign in and create a service request Admins: Call Support

Back to top

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×