# DNS question

**URL:** <https://meta.discourse.org/t/dns-question/266235>\
**Category:** Self-hosting\
**Created:** [May 25, 2023, 5:00pm UTC](https://meta.discourse.org/t/dns-question/266235 "2023-05-25T17:00:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![agf1997](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@agf1997](https://meta.discourse.org/u/agf1997)\
**Post date:** [May 25, 2023, 5:00pm UTC](https://meta.discourse.org/t/dns-question/266235/1 "2023-05-25T17:00:53Z")

</div>

Sorry for the basic DNS question. I know this isn’t specifically a discourse thing, just trying to figure out the best way to handle this with discourse in the mix.

I want to setup a discourse server on a subdomain (eg. [community.example.com](http://community.example.com))

However, I’d like to have the root domain (e.g. [example.com](http://example.com)) forward the user to the subdomain (e.g. [community.example.com](http://community.example.com)).

I’d like to do this to effectively reserve the root for the future use of another service (say a webserver), but not require users to type in the subdomain to get to the discourse server for now.

Is the best way to setup two A records (one for the root and one for the subdomain) that both point to the discourse server?

I was initially thinking that I should setup a CNAME that points from the root to the subdomain, but digital ocean doesn’t seem to let me do that.

Thanks in advance, and again, sorry for the basic question.

---

_[View the full topic](https://meta.discourse.org/t/dns-question/266235)._
