This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
I have records for hundreds of domains, so the solution posted here:
http://www.virtualmin.com/node/6079#comment-27716
(click thorough the list of domains and update the slave settings manually) did not work b/c I don't have a list, only a message saying I have too many domains and a search box.
So I deleted all the related directives in /etc/bind/named.conf.local (notify, also-notify, allow-transfer) and added them to the global options clause in /etc/bind/named.conf.options like so:
I ran Check BIND Config and then Apply configuration and the slave updated with all the domains and is now functioning normally.
NOTE that Default zone settings under Zone Defaults sets global options in the file /etc/bind/named.conf.options.
ALSO NOTE that there is a setting called "Additional named.conf directives for new zones" under BIND settings in the Virtualmin default templates. The help states:
By default, Virtualmin will automatically add also-notify and allow-transfer blocks to a new domain's entry in the BIND named.conf file to notify and allow transfers from known DNS slaves. However, if you have these defined globally or at the view level in your BIND configuration, you can un-check one or both of these checkboxes to prevent Virtualmin from automatically adding those blocks.
The checkboxes are disabled unless "Additional named.conf directives for new zones" is set to "Directives below". I set it to that, left the box blank, and unchecked both boxes. I have not tested a new domain setup since making this change.
I have records for hundreds of domains, so the solution posted here: http://www.virtualmin.com/node/6079#comment-27716 (click thorough the list of domains and update the slave settings manually) did not work b/c I don't have a list, only a message saying I have too many domains and a search box.
So I deleted all the related directives in /etc/bind/named.conf.local (notify, also-notify, allow-transfer) and added them to the global options clause in /etc/bind/named.conf.options like so:
options {
...
notify yes;
also-notify { <slave IP>; };
allow-transfer {
127.0.0.1;
localnets;
<slave IP>;
};
};
I ran Check BIND Config and then Apply configuration and the slave updated with all the domains and is now functioning normally.
NOTE that Default zone settings under Zone Defaults sets global options in the file /etc/bind/named.conf.options.
ALSO NOTE that there is a setting called "Additional named.conf directives for new zones" under BIND settings in the Virtualmin default templates. The help states:
The checkboxes are disabled unless "Additional named.conf directives for new zones" is set to "Directives below". I set it to that, left the box blank, and unchecked both boxes. I have not tested a new domain setup since making this change.
I agree, having a way to easily update and manage existing domains would be a useful feature.
The BIND DNS "Default zone settings" can do some of that automation at http://doxfer.webmin.com/Webmin/BIND_DNS_Server#Default_zone_settings
- - -
Senior Product Manager, and Co-Founder at Ubertus.org Inc.
Love back your Virtualmin & Webmin community