How do I change which site my custom domain points to?

answered
#1

^^^ too bad answers like that one can’t be downvoted. Problem solved.

#3

I haven’t looked in the admin section to verify this, but I imagine you would go to the Domains page and do any reassignments there.

#4

Thanks for asking @chrisrindone! we have lots of people that can learn from this so I would never downvote a question like this :smile:

@gregraven that’s a great answer and it’s something someone should definitely do if they are switching which site their domain points to, but it’s actually not the entire truth.

A little “inside Netlify” here: We determine which site to send a request to based on which site has that domain on it, which can be different from the site that your DNS points to.

For example, if your site is awesome-site.netlify.com and you create a domain and setup the DNS on that domain with a CNAME record for awesome-site.netlify.com, it still won’t load that site unless you add that domain as a custom domain or domain alias on your awesome-site.netlify.com domain page. If you create a secondary site called super-site.netlify.com then you can leave the DNS the way it was and just remove the custom domain from the previous site and add it as a custom domain on super-site.netlify.com and it will load super-site.netlify.com even though the cname record is still for awesome-site.netlify.com. :dizzy_face:

1 Like
#5

thanks for writing such a super helpful answer @futuregerald