How to Change Microsoft 365 DNS Nameservers to a New Hosting Provider
Question details
The user needs to move their domain to a new hosting provider and update the DNS nameservers while ensuring Microsoft 365 services continue functioning.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Migrating a website or domain to a new hosting provider, which requires modifying domain registrar settings and recreating DNS records.
- Observed behavior
- To maintain email and authentication services, the user must securely transfer and configure Microsoft 365 DNS records (like MX and TXT) at the new hosting provider.
Before making any changes to your domain's nameservers, log in to your current DNS host and take screenshots or export all existing DNS records to prevent accidental service downtime.
Update Nameservers and Migrate Microsoft 365 DNS Records
Use this method if your new hosting provider requires you to use their nameservers. You will need to recreate your Microsoft 365 records in their portal.
Changing nameservers transfers the entire DNS management to your new hosting company. Because of this, you must manually add Microsoft 365's service records to the new host so that your business emails and software authentication are not disrupted.
Log in to your current domain registrar or DNS hosting provider, navigate to the DNS Zone or Nameserver settings, and copy all existing records, especially MX, TXT (SPF), CNAME, and Autodiscover records.
In your domain registrar's dashboard, replace the current nameservers with the specific nameservers provided by your new hosting company.
Log in to your new hosting provider's DNS management portal and manually recreate all the Microsoft 365 records you exported in the first step.

Update Only the Website A Record (Keep Current Nameservers)
Use this method if you only need to point your website to a new host but want to leave Microsoft 365 DNS management unchanged.
Manage Your Business Documents Easily with WPS Office
While you manage your domain configuration and hosting migration, you may also be evaluating alternatives to expensive productivity subscriptions. WPS Office is a highly compatible, free alternative to Microsoft 365, giving you powerful word processing, spreadsheet analysis, and presentation tools without the recurring costs.
- 1. Download the installer: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the software: Run the setup wizard and follow the on-screen prompts to install WPS Office on your device.
- 3. Open your documents: Launch WPS Office to immediately view, edit, and create files that are fully compatible with Microsoft Office formats.

Frequently Asked Questions
Will my Microsoft 365 email stop working when I change nameservers?
Yes, it might stop working temporarily if you do not add your Microsoft 365 MX and TXT records to the new hosting provider. To avoid downtime, recreate these records at the new host immediately after updating the nameservers.
Where can I find the correct Microsoft 365 DNS records for my domain?
You can view your required records by logging into the Microsoft 365 admin center. Navigate to Settings > Domains, select your domain, and click on 'DNS records' to see exactly what MX, TXT, and CNAME records you need.
Do I have to change my nameservers to launch a new website?
No. If you only want to point your domain to a new website hosting server, you can simply update the A record (and CNAME for 'www') at your current DNS provider instead of changing the nameservers entirely.
What should I do if my domain registrar won't let me edit DNS records?
Some domain registrars restrict manual DNS modifications. If you cannot edit the records yourself, you should contact your domain hosting provider's support team to apply the DNS changes on your behalf.




