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 a bit of a unique problem. for the domain ( I want people to go to however I'm also throwing GSLB into the mix. for GSLB the devices(one in each datacenter) need to be the nameserver for portion of the domain that they are going to answer for( so I know I can make the NS record of just fine and have it point to each GSLB device. However that only helps for NOT I don't want to make my root NS of my GSLB as my enterprise managed DNS provider does an excellent job of all DNS stuff. any ideas?

share|improve this question
up vote 1 down vote accepted

You'll need to set up a web server at and do redirects. I would suggest that the redirects are 301 (permanent) and not 302 (temporary) as you want any links to to count as links to from an SEO point of view. There are services out there that can handle the redirects for you, or you can roll your own.

A CNAME-based solution is suboptimal because 1) technically you can't have CNAMEs when you have other records, and 2) you'd be surfacing identical content at two different addresses and search engines don't like that.

share|improve this answer

A common approach to overcome this limitation in DNS is to provide a HTTP 302 redirect from to

Here are the restrictions based on the RFCs:

  • CNAMEs must have no other resource records of other types (MX, A etc) as specified by RFC 1034 section 3.6.2 and RFC 1912 section 2.4. The exception is when DNSSEC is being used, in which case there can be a DNSSEC related recrd such as RRSIG, NSEC, etc. (RFC 2181 section 10.1)

  • CNAME records that point to other CNAME records should be avoided. In particular, it is possible to create infinite loops with CNAME records, and other error conditions. RFC 1034 section 5.2.2.

  • Other DNS record types, such as NS, MX, PTR, SRV, etc that point to other names should never point to a CNAME. RFC 1034 section 3.6.2, RFC 1912a, section 2.1.

share|improve this answer

Use redirection of a web server and in dns define CNAME www to

share|improve this answer

A CNAME record should be able to redirect requests for to

share|improve this answer
My DNS provider won't let me create an empty CNAME. – ChrisMuench Feb 22 '11 at 18:44
DNS cannot do re-directs – Zypher Feb 22 '11 at 19:33

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.