Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

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 professional 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.

2 Answers 2

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 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.

share|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. –  JD Isaacks Feb 9 '11 at 20:15

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