# Assigning a subdomain for Netlify deployments

**URL:** <https://answers.netlify.com/t/assigning-a-subdomain-for-netlify-deployments/18121>\
**Category:** Support\
**Tags:** branch-deploys, netlify-newbie, netlify-dns-https-ssl, deployment\
**Created:** [July 3, 2020, 6:06am UTC](https://answers.netlify.com/t/assigning-a-subdomain-for-netlify-deployments/18121 "2020-07-03T06:06:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrslump](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@mrslump](https://answers.netlify.com/u/mrslump)\
**Post date:** [July 3, 2020, 6:06am UTC](https://answers.netlify.com/t/assigning-a-subdomain-for-netlify-deployments/18121/1 "2020-07-03T06:06:35Z")

</div>

Hi,

Is it possible to set up Netlify builds to deploy to an automatically generated domain name that’s a subdomain of our own domain, as when using Netlify subdomains?

So, for example with `ourdomain.com` we’d like Netlify deployments be assigned to subdomains of `netlify.ourdomain.com` e.g. `brave-curie-671954.netlify.ourdomain.com`?

What’s the process for setting this up?

Can we delegate control of only `netlify.ourdomain.com` while continuing to use the current DNS provider and management practices with the rest of `ourdomain.com`?

---

<div class="post-metadata">

**Author:** ![jen](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jen/32/6044_2.png) [@jen](https://answers.netlify.com/u/jen)\
**Post date:** [July 7, 2020, 10:56pm UTC](https://answers.netlify.com/t/assigning-a-subdomain-for-netlify-deployments/18121/2 "2020-07-07T22:56:21Z")

</div>

Hey @mrslump,  
When you deploy on Netlify, each deploy is assigned a unique, automatically generated name in the format `[long-hex-string]--[your-netlify-subdomain].netlify.app`. However, the name is not a subdomain of your custom domain. But it is available even after you’ve created new deploys and published new versions of the site. Here’s a bit more about how our deploys work:

> **[Manage deploys](https://docs.netlify.com/site-deploys/manage-deploys/)**
>
> Roll back, lock, cancel, skip, cleanup, or delete a deploy for your site, or use environment variables to control the deploy environment.

To your second question, if you are hosting your DNS elsewhere, that is completely workable with your Netlify site, even with a custom domain. You don’t need to delegate your nameservers to us- just create a CNAME record at your DNS host pointing to your Netlify site. Do you want to take a look at our docs and let us know what follow-up questions you have?

> **[Configure external DNS for a custom domain](https://docs.netlify.com/domains-https/custom-domains/configure-external-dns/#configure-a-subdomain)**
>
> Configure an external DNS provider to point your domain to our platform. You can use external DNS for a subdomain or apex domain you registered externally.
