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 recently rented a virtual private server, I have installed apache with php and everything and it works fine, but I'm not sure how to setup my domain.

I have a domain at godaddy, so do i need to install nameserver on my VPS or can I just point godaddy to VPS ip adress somehow?

What if I want more than one domain, then i suppose nameserver is required?

share|improve this question
up vote 4 down vote accepted

Firstly, a nameserver is required however many domains you have pointing to one machine.

But you don't need to host it. You have 4 realistic options in total.

  1. Most domain companies provide their own nameservers for you to use if you want. I'd be very surprised if GoDaddy didn't. Ask them.

  2. Then there are third party DNS services like DynDNS or ZoneEdit. There are hundreds, if not thousands of services like this.

  3. And then there's the possibility your VPS host has centralised DNS servers for their customers. I'm with Linode and they host all my DNS for me.

  4. Failing that, you can always host it yourself on your server... If you only have one server, this is, frankly, a terrible idea. If the server dies (which they do from time to time) you lose very important DNS information (like MX email routing) as well as the website.

share|improve this answer
thanks a lot :) My VPS host has DNS servers and it seems to be working fine now, however I'm not sure how to setup domain to different subfolder instead of root apache folder. I woud like, for example that points to "/var/www/" and points to "/var/www/subfolder/" – dabrorius Feb 4 '10 at 19:23
I could hesitate a guess but I'm really not an Apache man. If you're looking for an easier-to-configure and much lighter server, take a look at Cherokee – Oli Feb 4 '10 at 21:42
you'd probably need to use virtualhosts for that. I use ubuntu and debian derivatives have their own tools for apache virtualhosts, so, it'll depend on your distro – Journeyman Geek Feb 5 '10 at 11:35

GoDaddy provides DNS hosting, so all you have to do is creating 2 A records, one for YOURDOMAINNAME.TLD and another one www.YOURDOMAINNAME.TLD, both pointing to your VPS's IP address

share|improve this answer

I'm not sure if this will help, but have a read here in the FAQ:

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.