Default Name Servers

Hi

I wanted to find out if i am doing this correct. I want the same nameservers for all the virtual hosts.

  1. Virtualmin - system settings - server templates - default settings - bind dns domian Additional manually configured nameservers: ns2.domain.com Master dns server hostname - Hostname: ns1.domain.com

  2. Webmin - networking - network configuration - a. Hostname & dns client Hostname: ns1.domain.com or do i put domain.com?

b. Host Addresses 127.0.0.1 ns1.domain.com,localhost IP Address ns1.domain.com

Thanks

Status: 
Active

Comments

Howdy -- for setting the nameservers for your domains, you don't need to change the hostname of your server, or the /etc/hosts file.

However, you would indeed want to set the "Master dns server hostname" field in the BIND DNS Server template.

Also, if you have any secondary/slave DNS servers, you can set them in the "Additional manually configured nameservers" field on that same screen.

Once those are set -- Virtualmin will add those as "NS" records for any new domains that are created.