Seem to get one thing fixed and then something else goes wrong at the moment.
Basically when I create a new virtual server, and the BIND zone’s get created, it seems to add an extra name server entry, which is wrong. In the zone file it will look like the following
@ IN NS ns1.domain.net.
@ IN NS ns2.domain.net..
@ IN NS ns2.domain.net.
Notice the one with the double dots? This causes BIND to fail. And i cannot for the life of me find out where it is pulling this extra name server from?
I have tried going into the Virtualmin Server template and removing my secondary name server there, it removes one of them, but keeps the double dot one there.
I have looked all over the place and cannot find any other templates which will create this additional secondary name server anywhere?
Virtialmin > System Settings > Server Templates > Default > BIND
Removed additional name server, saved and tried creating new server - extra NS still exists
Unchecked “Add Nameserver record for the system” - again still exists
I’m stumped, where else would it pull the ns2.domain.net from? I’ve checked all the BIND settings, nothing in there for NS2 (only NS1).
Basically when I did the cluster Webmin servers, i added the IP address of the slave server, and then gave it the hostname manually. Then when you cluster in BIND Virtualmin automatically adds two dots on the end.
I went back in and removed the webmin server index, and removed the link in BIND. Re-setup the server using the ns2.domain.net (instead of the ip address) added the server back into BIND, and now it sets everything up correctly.