Create a Subdomain NS Record for Office 365 DNS
Question details
The user wants to delegate a subdomain to another DNS provider by creating a custom NS record.

- Product
- Office 365 DNS management
- Device & OS
- not provided
- Scenario
- The parent domain uses Office 365 name servers, and the user wants another provider, such as Cloudflare, to manage a subdomain.
- Observed behavior
- The Office 365 admin center does not offer an option to add the required custom NS record.
Identify the parent domain's current authoritative name servers and collect its existing DNS records, including Microsoft 365 service records. Obtain the name servers assigned to the subdomain by the destination DNS provider and confirm that the provider supports the intended delegation.
Move the Parent DNS Zone and Delegate the Subdomain
Use an external DNS provider that supports custom NS records when Microsoft manages the parent domain's DNS.
The NS records that delegate a subdomain must be added to the authoritative DNS zone for its parent domain. Changing the parent domain's name servers is necessary only if its current DNS service cannot host those records.
In your registrar's or external DNS provider's DNS management panel, create a zone for the parent domain. Recreate its existing records, including the Microsoft 365 records shown under Settings > Domains in the Microsoft 365 admin center.
In the destination DNS provider's dashboard, set up the subdomain if supported and add the DNS records it needs. Copy the authoritative name servers assigned specifically to that subdomain.
In the new parent DNS zone, add NS records for the subdomain, using each name server assigned by the destination provider. For example, use the host name 'dev' to delegate dev.example.com.
At the domain registrar, open the domain's name server settings and replace the Office 365 name servers with those assigned to the new parent DNS provider. If DNSSEC is enabled, coordinate the DS record change with the registrar and providers.
After DNS changes propagate, query the parent domain's authoritative servers for the subdomain's NS records and test a record in the subdomain. Also check Microsoft 365 mail and other services.

Document Your DNS Migration with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for a smooth migration. Use it to document your DNS plan; it does not manage DNS or fix the Office 365 admin center.

Frequently Asked Questions
Can I add a custom subdomain NS record in the Office 365 admin center?
The Office 365 DNS management interface described here does not provide that option. Add the NS records at the provider hosting the authoritative parent DNS zone instead.
Do I need to move my domain registration to another company?
No. You can usually keep the registrar and change only the domain's name servers in its name server settings.
Which NS records should I add for the subdomain?
Use the authoritative name servers assigned specifically to the subdomain by its destination DNS provider. Add them as NS records for the subdomain in the parent DNS zone.
How can I keep Microsoft 365 services working after moving DNS?
Recreate the existing DNS records in the new parent zone before changing name servers. Check Settings > Domains in the Microsoft 365 admin center for the required Microsoft 365 records, and preserve records used by other services.
Can Cloudflare manage any subdomain through NS delegation?
Support depends on Cloudflare's available subdomain setup options and your plan. Confirm that the destination provider can host the subdomain and supplies name servers for it before changing the parent zone.




