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

A newbie question regarding dns records

Let's say I've configured, -> A 10.x.x.x

and a CNAME for CNAME for ->

when a user does an http request for what happens when the request reach the 10.x.x.x server. Will the URL be or (trying to find out if virtual host in apache need to be updated)

Thanks much

share|improve this question

migrated from Jun 3 '10 at 15:05

This question came from our site for professional and enthusiast programmers.

It will be - the Host: header will contain the origially requested domain, not the canonical one from DNS

share|improve this answer
And the Host header is the only thing that tells the server which hostname was used to reach it. – Matti Virkkunen Jun 3 '10 at 14:18
thanks a lot... – Traveller Jun 3 '10 at 15:03

The virtual host (as sent in the host header) will be exactly what the user typed into the address field, unless you do some kind of redirect on the server.

share|improve this answer
Would ServerAlias do redirection as well? There is a v host entry for abc...our sysadmin has added ServerAlias as and says that will do the redirection as well. – Traveller Jun 3 '10 at 14:54

I agree with answer from Paul Dixon and calmh.

As far as my understanding goes, in normal conditions the header will be, only an explicit redirect, not in the DNS server but an Reverse Proxy or on the Webserver can eventually change the HTTP header of the request.

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.