I don't understand how this works.

So I have 2 domains at godaddy. I set both there dns to dns1.vps.net and dns2.vps.net

I have a vps setup at vps.net. 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 vps.net to point to?

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

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

Thanks.

link|improve this question

70% accept rate
feedback

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 generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

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.

link|improve this answer
feedback

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 ns1.example.com and ns2.example.com). 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.

link|improve this answer
I agree with what you said. To make this a bit concrete for John: I would use godaddy.net 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. help.godaddy.com/article/680#arecs – SLY Feb 9 '11 at 19:34
The dns1.vps.net and dns2.vps.net were the name servers. So once I st them on the godaddy side, I then had to go to vps.net/domains to add those domains to my server. – John Isaacks Feb 9 '11 at 20:15
feedback

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