# Setting up DNS for domain & subdomain and MX records for both (using separate servers)

**URL:** <https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892>\
**Category:** Product Support\
**Created:** [July 27, 2020, 5:18am UTC](https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892 "2020-07-27T05:18:52Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[Solari](/t/-/158892/1) sought help with setting up DNS records for a subdomain (`discuss.whatitis.com`) and mail handling, separate from the main domain (`whatitis.com`). The main domain hosts a Wordpress blog on one server, while the subdomain hosts a Discourse forum on another server. [IAmGav](/t/-/158892/2) advised setting up a subdomain and an A record pointing to the Discourse forum. After receiving confirmation, [Solari](/t/-/158892/3) successfully set up the configuration, which involved dealing with multiple MX entries and setting up additional SPF/DKIM records.

<div class="post-metadata">

**Author:** ![Solari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solari/32/186728_2.png) [@Solari](https://meta.discourse.org/u/Solari)\
**Post date:** [July 27, 2020, 5:18am UTC](https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892/1 "2020-07-27T05:18:52Z")

</div>

I’ve read and read up on this but I am still a little confused on the proper setting up of DNS records for subdomains and mail handling for Discourse.

Let’s say I have a domain [whatitis.com](http://whatitis.com):

1. I have a Wordpress blog on a separate server at [whatitis.com](http://whatitis.com)

2. [whatitis.com](http://whatitis.com) has its own MX record/email on the above server.

3. I want to put discourse on [discuss.whatitis.com](http://discuss.whatitis.com) on its own server.

4. I want discourse emails to be on the [discuss.whatitis.com](http://discuss.whatitis.com) subdomain.

I’m confused as to whether to set up CNAME or A for the subdomain too, etc. etc.

What’s the recommended format for this sort of thing? I host my DNS on VULTR at the moment and their interface is relatively easy, I’m just clueless as to the proper settings for the above setup, that’s all. ; )

Many thanks.  
Ray

---

<div class="post-metadata">

**Author:** ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)\
**Post date:** [July 27, 2020, 8:40am UTC](https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892/2 "2020-07-27T08:40:48Z")

</div>

You will have to setup a sub domain for the discuss.domain.

Then when that is done, set an A record to point to the discourse forum.

PM me if you need help

---

<div class="post-metadata">

**Author:** ![Solari](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/solari/32/186728_2.png) [@Solari](https://meta.discourse.org/u/Solari)\
**Post date:** [July 28, 2020, 3:59am UTC](https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892/3 "2020-07-28T03:59:09Z")

</div>

Thanks for the confirmation – I got it working. Was a bit tricky with more than one MX entry and needing to set up additional SPF/DKIMs and all that. ; )

Thanks!  
Ray

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 27, 2020, 3:59am UTC](https://meta.discourse.org/t/setting-up-dns-for-domain-subdomain-and-mx-records-for-both-using-separate-servers/158892/4 "2020-08-27T03:59:29Z")

</div>

Closed on August 27, 2020, 3:59am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
