DNS zone already exists as master - import domain backup without DNS then attach DNS

2 posts / 0 new
Last post
#1 Tue, 05/01/2018 - 13:37
oracast

DNS zone already exists as master - import domain backup without DNS then attach DNS

I am going to prefix this with the fact that I have likely done this the wrong way however I am hoping there is a solution to this dilemma.

In an effort to migrate to new servers and a new OS consolidating from other systems like Plesk, etc. I have managed to move DNS in place on our Virtualmin system.

Now I need to move virtual servers over and then test them on the new system before making them officially live so DNS is stil pointed to the old webhost. If I try to restore from backup even with the option to not import DNS this fails saying DNS already exists. I can however restore via command line like this:

virtualmin restore-domain --source /home/somebackupfileforadomain.tar.gz --all-domains --all-features --except-feature dns --only-features

Then the DNS still exists and the virtual server exists. Perfect. Except that virtualmin does not have DNS enabled for that virtual server. is there any way for me to tell virtualmin that it does in fact have control of the DNS without deleting the DNS entries and having it recreate them? The downside of deleting them is that I will lose the old records and anything I have updated. Help?

Wed, 05/02/2018 - 11:29
oracast

So as a quick workaround I am copying the zone file data to notepad, deleting the zone on this server only (not the slaves), importing the virtual host, then replacing the zone data with what was copied out. Then we test the migration and finally adjust the zone with the new IP after SSL certs if any have been generated) and we are sure the virtual host is good. At the same time we are testing with a new version of PHP, etc.

Topic locked