adding slave zone failed with Can't use string ("s2b.mydomain.gr") as an ARRAY ref while "strict refs" in use

Hi, I have 2 servers and I am running latest webmin 1.810 and virtualmin 5.04 on both. I have setup bind as master / slave between them. They have been working for years without problems.

1st problem) Today I tried to create a new virtual server on master server (s1) and it failed with the following message (I use here mydomain instead of my actual domain)

Adding slave zone on s2b.mydomain.gr ..
.. BIND DNS domain failed! : Can't use string ("s2b.mydomain.gr") as an ARRAY ref while "strict refs" in use at /usr/share/webmin/bind8/bind8-lib.pl line 2670. 

After that I deleted this virtual server on master but dns config on /etc/bind/ folder remained. Files remaining were : named.conf.local.lock newvirtualserver.gr.hosts and newvirtualserver.gr.hosts.lock. I removed them manually. I also edited named.conf.local and removed manually the last lines for zone newvirtualserver.gr

I haven't changed any bind configuration for months on any servers and it was working previously without problems.

2nd problem) I noticed also a 2nd issue on bind. If you think it it not related tell me to file a new bug for this.

My slave server has 2 ips (2 isps with load balancing) so on master in webmin/services/bind/zone_defaults on Also-notify slaves and allow-transfers I use listed and use the 2 ips of the slave server.

This also worked as expected for years and on /etc/bind/named.conf.local on the new zone the also-notify and allow-transfer sections contained always 2 ips. However on newly created servers only 1 ip is used. I think it is the ip of the cluster slave server which I have added with one ip only, to avoid trying to inform him twice. All above configuration worked for years without problems

zone "testdom11.gr" {
    type master;
    file "/etc/bind/testdom11.gr.hosts";
    also-notify {
        66.77.88.99;
        //missing 2nd ip here
        };
    notify yes;
    allow-transfer {
        127.0.0.1;
        localnets;
        66.77.88.99;
        //missing 2nd ip here
        };
    };

Can you please look into these issues?

Regards, Vagelis Koutsomitros

Status: 
Active

Comments

1st issue fixed! Thank you

2nd issue remains though. It seems that the listed ips in webmin/services/bind/zone_defaults on Also-notify slaves and allow-transfers are ignored or overridden.