Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two servers with IP as follows:

ServerA IP is production
ServerB IP is development and testing (QA/Staging to be built)

ServerA has A record and ReverseDNS setup for, ServerA has CNAME records for www, foo and bar which each point to

I expect to set up ServerB's DNS entries to be identical to ServerA's entries -- except domain name would be and, and resolve to ServerB's IP.

In particular, I want ServerB hosted apps to be able to send mail that won't be generally rejected by most mail servers due to questionable DNS setup

I suspect that this setup may not pass muster -- is it valid for ServerA DNS not to make reference to the subdomain

Will mailservers accept mail from host if the reverse DNS matches the IP for, even if has no DNS entries related to dev subdomain?

share|improve this question
I read this question 4 times, and cannot make any sense of what you are doing let alone what you are asking. – Michael Graff Jun 18 '10 at 22:21
I second what Michael just said. You need to break this question down. Ask/do one thing at a time. – Nikolas Sakic Jun 19 '10 at 0:47
up vote 1 down vote accepted

You don't mention what DNS software you're using, so I'm assuming bind. Creating sub-domains is easy, just a case of typing it as you expect it to be. If you want to delegate DNS for the subdomain, that becomes a little harder. We'll assume the same DNS servers will be hosting both domain, and subdomain (As a side note, www, foo, and bar are all subdomains).

dev        A
dev        MX 10  dev    CNAME  dev    CNAME  dev    CNAME  dev

Easy as pie. You can save yourself some typing, using the $ORIGIN keyword.

          MX     dev
www       CNAME  dev
bar       CNAME  dev
foo       CNAME  dev

If you really want the zone to be hosted else where, I suggest reading up about zone delegation, and grabbing yourself a copy of the book DNS and Bind.

As for the mail handling. The above sets up inbound mail records, however outbound is quite different. This kind of setup isn't likely to cause an issue with mail delivery, assuming the host announces itself properly, has a valid PTR record, doesn't exist on any black lists, and all the other reasons mail might not get delivered.

share|improve this answer
Thank you. I was afraid I was wasting my time waiting for the DNS to propagate. (Sorry for confusing the other guys!) In the mean time DNS settings have propagated and I was able to confirm acceptance of email sent from the domain. As you indicate, barring other issues (missing PTR record, IP blacklists, etc) there is no issue sending mail from an otherwise properly configured subdomain ( where the DNS settings for the root domain ( have no entries that relate to that subdomain. [I've only ever setup a subdomain as a CNAME entry before this.] – marfarma Jun 22 '10 at 17:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.