Basic DNS Question for a New Linode
I just purchased and am interested in doing a few things with this space. First thing I want to make sure I get right is the DNS because without that things kinda suck. Here's what I want to do. My primary domain is mikeshome.org which is the hostname for the linode I just got. I am adding in apache2 and postfix on ubuntu 7.10 but have to admit to being a bit unsure about the best way to use the domain manager to add a second domain which is not a subdomain of the first. I'd like to add a domain I have access to and can change the DNS for and have the linode deal with that mail too. This is a completely separate domain; but I want the "mail" server to provide for it. I know how to setup virtual domains and forwarders in postfix pretty well and I know how to write up apache2 configs. I'm a bit unsure with the DNS manager how I add this second domain which is unique to the first. I've added the primary one in already and changed the name servers at register.com to point to linode.
Thanks for any help. Sorry if this is a basic question but I'm just at that point in things and want to make sure I get it right.
Mike
3 Replies
1. You probably don't want "mikeshome.org" to be a hostname or A record in your DNS. Others may disagree, but I've found it eventually leads to confusion and awkward problems. Instead, you want to name your linode something like "linode.mikeshome.org" (or cujo.mikeshome.org, or whatever makes you happy) and then use CNAME records to direct "mikeshome.org" and "
2. For mail, you need an MX record in the other domain's DNS setup that references cujo.mikeshome.org. You also need your postfix on cujo to accept mail from other.domain. Basically, this means adding "other.domain" to the mydestination parameter and/or whatever virtual user setup you need.
You have mikeshome.org setup for email and are running postfix on your linode to handle it. You want this same postfix install to handle mail for someotherdomain.com as well.
The answer is you just need to point the MX record for someotherdomain.com to mikeshome.org. Something like:
someotherdomain.com. 14400 IN MX 0 mikeshome.org.
Thats all, its just that easy. The harder part is setting up postfix to properly handle all of this new mail. You also might find my DNS Check tool helpful:
Neil
@nabber00:
You also might find my DNS Check tool helpful:
http://www.nabber.org/projects/dnscheck/ Neil
I just tried this out - it looks really, really useful.