1

I am quite new about Linux. I wonder if I could run DNS and Web Server on the same server?

The reason is I have a server which they want me to set it up as a DNS & RevDNS server with the following spec;

HP Proliant DL120 Gen9 
E5-2603v3 1.6GHz 6 15MB 
16 GB Ram PC4-2133P-R Kit
1 TB SATA 7.2k RPM
1 Gbps HPE Embedded Dual Port 361i Adapter

This server has 1 Gbps Download, 2 Gbps Upload fiber connection.

I don't want to waste this server just for DNS & RevDNS. Should I convince them to rent 2 VPS in different location to use them as DNS Server?

Thanks in advance for your suggestions and answers.

Lunatic Fnatic
  • 257
  • 1
  • 6
  • 11

3 Answers3

4

It is possible but not recommended if you have more than just the web server relying on that planned DNS, i.e your company email, ftp, etc. also using that DNS.

From a security standpoint alone, your web server will provide a very big attack surface and you do not want your DNS compromised. Use an online DNS provider which are plenty and cheap instead.

FoamyBeer
  • 371
2

It's possible (DNS does not require much hardware-wise). It was common practice, but is not recommended. The downside of having DNS, Web, etc. On the same box is that when it goes down, everything goes down.

There are plenty solid free DNS servers that have great infrastructure Rackspace and Namecheap to mention a few.

In my experience the biggest problem is that if your DNS goes down, so does your Email, Website, etc. So having those three separated is always a good idea. Nobody hosts their own email nowadays, that will be the same for DNS soon.

Another option following best practices is to host your own DNS but having an external provider as secondary DNS.

1

Running a web server and a name server on the same machine is possible and common. If you can do so on your machine depends on things in your setup that we can only guess. But if we guess that you have a real, unfiltered Internet connection with real IP addresses (rather than CG-NAT or something like that), then yes, you can.