Regarding DNS server with virtualmin on the same box

My machine will act as a public dns server which stay on the same box with virtualmin to serve multiple virtual hosts.

What is the procedure to config server as a dns name server ? Before or after installation of virtualmin ?

Virtualmin installs BIND as a nameserver along with its other stuff, you don’t need to install anything separately.

If your nameserver is supposed to be public (i.e. allow queries for any hostname from anywhere – make sure you really mean that), you’ll just need to configure BIND to accept recursive queries from the Internet, which it by default does not for security reasons.


There’s some additional information on configuring a server as a nameserver here in the section “How do I setup nameservers for my server?”: