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 just switched to dedicated hosting for my web server and my host does not provide DNS services. Is it good practice to host a DNS server on the same machine as my web server?

share|improve this question
up vote 0 down vote accepted

You can host DNS and web servers on the same machine, but it is the best option unless you have no other choice or you can not afford other choices.

Simply, hosting different services on different hosts allow you to have more secure servers. A good reason is that the vulnerabilities in one service may affect the whole system and thus affecting other services. When you have them separate, hopefully only one system will be affected.

Another factor should be looked at: system performance. If you expect that you server can handle the traffic volume of both services, it should be fine.

share|improve this answer
any reliable DNS service providers that you would recommend? – Jon Jan 20 '11 at 8:23

While there is nothing fundamentally wrong in running a DNS service on the same machine as a web service it has the drawback that there is no redundancy. On the other hand, for many smaller sites that don't also run an a mail server it often hardly matters, because if the web service is down it may not really matter whether or not the DNS lookup can be made.

Of course if you need DNS to be up for mail, or any other reason, it's a whole other matter and you really should have a second DNS server.

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.