[SOLVED] Moving Slave DNS to another machine

4 posts / 0 new
Last post
#1 Wed, 09/22/2010 - 14:40

[SOLVED] Moving Slave DNS to another machine

Is there a quick way to update Allow transfers from.. and Also notify slaves.. for all domains on the Master?

Wed, 09/22/2010 - 18:06

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 {
                <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:

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.

Tue, 12/31/2013 - 11:24

I agree, having a way to easily update and manage existing domains would be a useful feature.

Mon, 12/12/2016 - 02:56
Francewhoa's picture

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

Topic locked