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

I do not know anything about this DNS stuff. I don't even know if this should be on stackoverflow or serverfault but anyways...

I have a site at whose IP is, I have subdomain at whose IP address is also This site is registered at GoDaddy.

I am assuming that my site is on a virtual host since shows me a different page than my homepage at, and I am on shared hosting

The server is running Apache 2.2

Now I have another domain ( which is not registered with GoDaddy and somebody else is managing it. All he asked is for the IP address of the server (which is I want to point to If he makes an A-Record to make point to my server's IP which is, where will it go? And do I need to edit my A-Records too? Because I am assuming that my site is on virtual host, I do not have the assurance that my nameservers already know for whom is!

I do not have access to Apache conf files. Anybody familiar with the GoDaddy control panel?

share|improve this question
up vote 1 down vote accepted

The technology in use is called name based virtual hosting. The web server reads the host header from the client request, searches the list of hosts that are on it and then presents the relevant website or a default it a match fails.

You will need to configure your to be an alias for This is most easily achieved through the ServerAlias directive within the VirtualHost definition for

<Virtualhost *:80>


share|improve this answer
I don't think I have access to the configuration files of Apache. – Rolando Cruz Sep 14 '11 at 7:22
You probably need to speak to godaddy to see if they can help. – Iain Sep 14 '11 at 7:28
That's what I figured. Thanks – Rolando Cruz Sep 14 '11 at 7:37

You have to understand how DNS and Apache/HTTP relate.

  • If you contact from your browser, it will contact the server directly and asks for the default document for the site, which is usually not your main site on a shared hosting but something the provider configures.

  • If you contact, your Browser will ask the DNS for the address ( and will then contact the server and asks for the default document for the site, which is your main site.

  • The same is true for, but of course it will ask for the default document for this sub-site.

  • If you now have this other domain, your browser will get the same IP as before and ask the server for the default document for this domain, but since Apache doesn't know about a site with this name, it will fall back to the default case as in the first case and will deliver the default document like with (this is the most likely configuration, but others are possible as well).

As a result, what you need to do is to configure Apache for the new domain. How this is done is largely dependent on the system you are on. It could be some config panel software like Plesk, or the provider would need to do it himself or you could be required to edit a config file manually.

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.