I’m migrating around 200 Virtualmin domains from four servers to one server. Unfortunately the existing domains do not have integrated DNS so their DNS is seperate.
Topology:
Three foreign name servers not controlled by us, all DNS up to date and current:
not_our_name_server_1, not_our_name_server_2, not_our_name_server_3
The four old distributed servers:
old_server_1, old_server_2, old_server_3, old_server_4
One new server:
new_server
The admin who controls the foreign name server has made new_server a slave for their name servers so all zones have copied across. Check.
In other words, on our new server, we are a slave for all four old server’s domains.
Once I restore the domain I use the undocumented switch --dns --associate
which is a lifesaver because it associates my restores with the existing name server records.
I then do a cleanup, fix IPs, and also change name servers, e.g. I change it from ns1.old to ns1.new
Now the problem is what next.
I tried changing Slave to Master using Webmin, and this works, but no replication happens to the slaves, as the zone was never created on this new master.
I’m looking for some advice specifically:
- Bulk changing of slaves to master in Webmin
- Re-creation of slaves zones on new name servers.
- Permissions required? I tried a few domains but keep on running into issues in spite of allow zone transfers being on.
- Is rndc command line a good tool to use? I tried accepting the defaults in Webmin but running commands such as
rdnc addzone example.com '{ type slave; masters { a.b.c.d; d.e.f.g; }; };'
Keep on failing with
named[87107]: invalid command from 127.0.0.1#48323: failure
Any other tips please