I have two vps (test & production). test server adds DNS Zones automatically for a domain after I add a virtual server in virtualmin. However, on the second server I have to manually create Master zone and add records one by one.
I have no idea which option I’ve enabled in the test system!!! Any idea?
I found that feature but when I tried to enable it:
“Failed to save enabled features : Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.”
And when I add 127.0.0.1 to “Hostname and DNS Client” it forgets !!!
FYI I have Centos 6.5, Webmin 1.690, Virtualmin 4.08.gpl
Depending on your distro, it might be necessary to put the nameserver in /etc/network/interfaces. /etc/resolv.conf is automatically generated on some distros.
Another reason might be that your nameservers get overwritten by the DHCP client, if your server doesn’t have a static IP address.