Domains and DNS

Delegate a subdomain with NS records

Reviewed on 2 min read registros dns nameservers

An NS record can delegate a subdomain to another DNS provider. For example, ejemplo.com can use Hostsuar's DNS while app.ejemplo.com has its own zone with another service.

This delegates DNS management for that subdomain and everything below it; it doesn't just point a page to an IP. If your provider asks for A, AAAA or CNAME records, use those instead of replacing them with NS.

Prepare the subdomain's zone

  1. Create the app.ejemplo.com zone with the destination provider.
  2. Set up the records you need there and confirm that its servers answer for that zone.
  3. Get the full names of all the nameservers the provider gives you.
  4. Check whether the subdomain already serves a website, email or other services that need to be kept.

Don't change the main domain's nameservers if you only want to delegate the subdomain.

Request the delegation

If the main zone is managed by Hostsuar, contact support with the domain, the exact subdomain and the destination nameservers. Creating this delegation isn't available as an ordinary edit in our zone forms.

If the main DNS belongs to another provider, the delegation must be created there. When a nameserver sits inside the delegated subdomain itself, you may need supporting (glue) records; check the procedure before creating a circular dependency.

If the delegated zone uses DNSSEC, also coordinate its DS record in the parent zone. Delegating with NS doesn't enable DNSSEC automatically.

Check before removing the old setup

Check the delegation and the new zone's records from public DNS, and test the subdomain's services. Keep the previous configuration until you have confirmed the result. To tell these changes apart, see nameservers versus records.

You may also find useful

Something wrong or out of date? Tell us and we will review it.