Hi alento,
Thank you for your tip!
I was able to make a successful IP change by touching the following files and replacing the current IP with the one I wanted:
sudo nano /home/user-data/dns/custom.yaml
sudo nano /etc/nsd/zones/example.com.txt
sudo nano /etc/nsd/zones/example.com.txt.signed
sudo service nsd restart
I updated the serial number by 1 (furthest digit on the right) when I edited /etc/nsd/zones/example.com.txt, I do not know if this is necessary or not, but I recall when I was studying DNS back in the day, when updating a zone the serial number had to be changed for the change to be recognized and updated, but that was like 10-15 years ago!
Once I secure an IP with the new cloud server and have restored my the files, I will go through the steps again in updating the IP and will provide the steps, if different.
!* BACKUP the mailinabox domain *!
These hold the configuration to the DNS and mail. After running the sed commands bellow, these two files will have to be overwritten by the original (backup). Otherwise the IP of the host will be the same as the Web server and will not resolve.
example.com is the main domain that Main in A Box uses, as in box.example.com
/etc/nsd/zones/example.com.txt
/etc/nsd/zones/example.com.txt.signed
*If you are copying and pasting the above, make sure to correct the single quote, as I noticed the single quote gets an HTML conversion.
I will be using the following sed command to replace all the current IPs with the new IP:
old IP = 1.2.3.4
new IP = 5.6.7.8
sed -i ‘s/1.2.3.4$/5.6.7.8/g’ *.txt
sed -i ‘s/1.2.3.4$/5.6.7.8/g’ *.yaml
sed -i ‘s/1.2.3.4$/5.6.7.8/g’ *.signed
Question: If the topic closes in 7 days after the last reply, is updating a closed topic still possible? If not, can you advise in how I can provide an update on a closed topic?
I did the math; if updating the IPs via the UI (deleting all the domains and adding them back in) took 15 seconds per domain, that is 4 domains a minute. The manual task would have taken me 32 minutes to do the update for all 128 domains. If everything goes as planned, the automated update should take no more than 5 minutes, at most!
I will be making a backup of all the files prior to any attempt in updating the files.
Thank you again for your assistance!!!
UPDATED: 07/19/2019
I was able to update all the domains with expected results! I updated the instructions, as I discovered a few discrepancies when implementing the above instructions when including the main domain that Mail In A Box uses.