Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Question: I need to get DNS configured to point a subdomain from one domain (which I will generally not be controlling) to another subdomain on a different domain name. Testing this process using a simple CNAME entry keeps pointing to the primary domain and not the subdomain where it should be going.

This is the scenario; ( is in my control)

  • should display content from this subdomain
  • It is instead displaying content from (not the subdomain sub domain)
  • displays content from although what I need is it to display content from

Other Background:

  • setup is between two different servers with different IP ranges although DNS cluster is on between all servers
  • the is set up with its own unique IP (which is on the A records for the subdomains, the subdomains work as expected/normal)
  • the DNS entry is correct (cdn CNAME ie the end period is included
  • a DNS lookup on the CNAME externally reports back as as the record

Does anyone know what DNS entries I am missing to get this working correctly ?

Note: I do not want to just put a redirect between domains as I need the content of to be visible via the URL of also I can just use some redirects on to achieve what I am after but would prefer to just get the DNS correct.


Current DNS

cdn CNAME || CNAME entry for domain1

subdomain A XXX.XXX.XXX.XXX || A record entry for working subdomain pointing to unique IP

What should happen is that ->

What is happening is -> (ie. the root not the subdomain)


Actually if its easier I am trying to emulate a simple cloud setup like Rackspace Containers (which I assume is similar to Buckets on AWS). although it is not for cloud storage

Where a container has a url reference of (in truth they are much longer) so I can use a CNAME record of: cdn CNAME

so that displays content from

share|improve this question
Can you edit your question to list the current DNS configuration you have in place? I'm really confused by your question as to what you have in place. A simple CNAME -> would be perfect. – Brent Pabst Nov 27 '12 at 21:26
How is it all configured? Kan you show the zone-file or the equivalent? Or at least the SOA-, A- and CNAME records you have entered? – Sandokan Nov 27 '12 at 21:28
thanks guys will edit it now to make it clearer – Stephen Nov 27 '12 at 21:42

This is not a DNS problem.

You have to tell the web server at address XXX.XXX.XXX.XXX how to handle requests for See your web server's documentation for (name-based) virtual hosting.

If you are using Apache:

share|improve this answer

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.