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 don't understand how this works.

So I have 2 domains at godaddy. I set both there dns to and

I have a vps setup at I can SSH to this server using the IP address for my vps. I setup apache. I can now reach my server in a browser via http://server-ip

But how do the domains know which server at to point to?

There has to be another step? Otherwise they would point to every server on

How do I tell the domains to point to this particular server?


share|improve this question

closed as off topic by mattdm, Chris S, Dave Drager, Iain, John Gardeniers Feb 9 '11 at 20:54

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

You appear to lack a fundamental understanding of how DNS works. I would suggest speaking to someone at GoDaddy and having them host your DNS and help you with getting it set up properly using their web-based DNS control panel.

I would also suggest investing the time and (minimal) money in picking up a copy of DNS & BIND (physical or e-book) and reading through it before attempting to do anything involving DNS.

share|improve this answer

Someone has to host DNS for you. If your VPS come with that, find our from them the address of the Name Servers (usually something like and If you don't have anybody to host DNS, you'll need to find someone (GoDaddy has plans you can buy too).

In your domain name manager on GoDaddy change the nameservers for the domain(s) to match what you got from the DNS host.

Now setup DNS with the DNS host. Usually they make this really easy; but they should have help either way. You need for DNS to point to the VPS server's IP addresses.

share|improve this answer
I agree with what you said. To make this a bit concrete for John: I would use to point an A record at your server. -----GoDaddy hosts your dns, and godaddy's dns is set to point an A record to your server. This is a link to GoDaddy's instructions. – SLY Feb 9 '11 at 19:34
The and were the name servers. So once I st them on the godaddy side, I then had to go to to add those domains to my server. – JD Isaacks Feb 9 '11 at 20:15

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