Change nameservers to set up Office 365 with

Follow these instructions if you want Office 365 to manage your Office 365 DNS records for you. (If you prefer, you can manage all your Office 365 DNS records at

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

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 at by using this link. You'll be prompted to login first.


  2. O365_DOM_DynCom_Login2_Login
  3. O365_DOM_DynCom_Login3_DomainName
  4. O365_DOM_DynCom_Login4_Preferences
  5. In the Add DNS Record section, in the boxes for the new record, type or copy and paste the values from the following table.

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





    (Leave this field empty.)






  6. Choose Create Record.


  7. O365_DOM_WaitForUpdateAcrossInternet

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 Domains page, choose the domain that you are verifying.


  3. On the Setup page, choose Start setup.


  4. On the Verify domain page, choose 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.

Back to top

Change your domain’s nameserver (NS) records

To complete setting up your domain with Office 365, you change your domain’s NS records at your domain registrar to point to the Office 365 primary and secondary name servers. This sets up Office 365 to update the domain's DNS records for you. We'll add all records so that email, Skype for Business Online, and your public website work with your domain, and you'll be all set.

Caution:  When you change your domain’s NS records to point to the Office 365 name servers, all the services that are currently associated with your domain are affected. For example, all email sent to your domain (like will start coming to Office 365 after you make this change.

Ready to change your NS records so Office 365 can set up your domain? Follow the steps below.

Important: When you have completed the steps in this section, the only nameservers that should be listed are these four:





The following procedure will show you how to delete any other, unwanted nameservers from the list, and also how to add the correct nameservers if they are not already in the list.

  1. To get started, go to your domains page at by using this link. You'll be prompted to login first.


  2. On the Zone Level Services page, choose Domain Registration for the domain that you want to edit.


  3. On the Domain Name Registration page, choose Edit Nameservers.


  4. On the Domain page, in the Nameservers: box, delete the default nameservers by selecting them and then pressing the Delete key on your keyboard.


  5. Still in the Nameservers: box, type or copy and paste the line 1 nameserver value from the following table, and then press Enter on your keyboard to create a new line.

    Then type or copy and paste the line 2 nameserver value from the table into the new line. Repeat this procedure to add the line 3 and line 4 nameserver values.

    line 1

    line 2

    line 3

    line 4


  6. Choose Save Nameservers.


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

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!