Operating system: Centos
**OS version:**8.3.2011
I am running Centos 8 on a new Virtual Private Server. I purchased a new IP address from my provider, and I wanted to add it to my server. I followed several step by step guides to do this, by going into Webmin and adding a new network interface, then adding the gateway for the IP. Finally, I went into Virtualmin and clicked on Change IP address for each of the two virtual servers I had created.
Prior to attempting to change the IP address, the server was correctly setup, with each of the virtual servers I had created resolving properly, and with the email addresses I also created routing mail properly. I had also installed an SSL certificate, which was also functioning correctly.
However, upon changing the IP address in Virtualmin and Webmin, the virtual servers will not resolve at all (timing out instead) every time I try to load them. The virtual servers no longer work at all, and are presently down and not functioning. As I had mentioned, they were working correctly prior to this change, and I have changed nothing else.
In order to change the IP address, I changed the Network Configuration in Webmin, adding the new network interface as a sub-interface of the main interface that was in use, so eth0:0 is the new interface. I also added the gateway in the main Network Configuration menu. Then I switched to Virtualmin, clicked Server Configuration, and clicked on Change IP Address.
After doing this, the virtual servers will no longer resolve.
When I checked in the DNS records for Webmin, for the Master Server that was auto-created by Virtualmin, the listed IP addresses in the Master Server were the old IP addresses. I thought that perhaps this was what was causing the issue, so I changed them manually to the new IP address.
However, now when I open Virtualmin and click on Server Configuration, DNS Records, I get the following error: Warning! Warning - errors were found in this domain’s DNS records : The DNS record domain.org resolves to the IP address (new IP address) instead of the virtual server’s IP (old IP address).
So, clearly this was not the correct way to solve this issue.
I have changed the DNS records back to the old IP address, as they were before, in the master server area, but I am still stuck as to how to proceed and make the server recognize and resolve to the new IP address. I have also flushed my DNS resolver cache on my computer, to no avail. No matter what I do, it still times out. Everything was working perfectly until I changed the IP address (which I incorrectly thought would be very simple to do).
In addition, I tried checking the configuration in Virtualmin for the virtual server using System Settings: Re-check Configuration, and everything comes up as working properly, with the new IP address listed as the IP for the server.
I entered the correct gateway, broadcast address, and IP address, so there were no errors in that regard. As I had it set up before, changing the IP address in Virtualmin should have worked, and the site should have resolved properly. However, it is not.
I have also checked it from my phone, which I had not used previously to visit the site, and it still does not work. Can you please help me to know what I did incorrectly? Perhaps there is a step by step guide that would show me how to fix this, that I was unable to find. Your help is greatly appreciated. Thank you.