Change nameservers to set up Office 365 with Amazon Web Services (AWS)

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 AWS.)

Here’s what you need to do.

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

    AWS-BP-Configure-1-1

  2. On the Resources page, choose Hosted Zones.

    AWS-BP-Configure-1-2

  3. On the Hosted Zones page, in the Domain Name column, choose the name of the domain that you want to edit.

    AWS-BP-Configure-1-3

  4. Choose Create Record Set.

    AWS-BP-Configure-1-4

  5. In the Create Record Set area, in the boxes for the new record, type or copy and paste the values from the following table.

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

    Tip: The quotation marks required by the onscreen instructions are supplied automatically. You don't need to type them manually.

    Name

    Type

    Alias

    TTL (Seconds)

    Value

    Routing Policy

    (Leave this field empty.)

    TXT - Text

    No

    300

    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?

    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?

    Simple

    AWS-BP-Verify-1-1

  6. Choose Create.

    AWS-BP-Verify-1-2

  7. 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. 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

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 rob@your_domain.com) 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:

  • ns1.bdm.microsoftonline.com

  • ns2.bdm.microsoftonline.com

  • ns3.bdm.microsoftonline.com

  • ns4.bdm.microsoftonline.com

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

    AWS-BP-Configure-1-1

  2. On the Resources page, choose Hosted Zones.

    AWS-BP-Configure-1-2

  3. On the Hosted Zones page, in the Domain Name column, choose the name of the domain that you want to edit.

    AWS-BP-Configure-1-3

  4. Select the Nameserver record set.

    AWS-BP-Redelegate-1-1

  5. In the NS - Name server record set in the Value box, delete all of the nameservers by selecting them all and then pressing the Delete key on your keyboard.

    Caution: Follow these steps only if you have existing nameservers other than the four correct nameservers. (That is, delete only any current nameservers that are not named ns1.bdm.microsoftonline.com, ns2.bdm.microsoftonline.com, ns3.bdm.microsoftonline.com, or ns4.bdm.microsoftonline.com.)

    AWS-BP-Redelegate-1-2

  6. Still in the NS - Name server record set, in the Value box, type or copy and paste the First line value from the following table, then press the Enter key on your keyboard and type or copy and paste the next line value.

    Important: Each nameserver value must be on its own separate line within the Value box, as shown in the following illustration.

    First line

    ns1.bdm.microsoftonline.com.

    This value MUST end with a period (.)

    Second line

    ns2.bdm.microsoftonline.com.

    This value MUST end with a period (.)

    Third line

    ns3.bdm.microsoftonline.com.

    This value MUST end with a period (.)

    Fourth line

    ns4.bdm.microsoftonline.com.

    This value MUST end with a period (.)

    AWS-BP-Redelegate-1-3

  7. Choose Save Record Set.

    AWS-BP-Redelegate-1-4

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!

×