modify of our public ip range

Hello ! Our internet provider sent an email to inform us that it will modify our public ip addresses in 1-2 months.

We have 2 public Dns server and 1 public mail server running on Centos 5 and where we use Virtualmin. Dns master has got Virtualmin Pro (it is also a public web server), Dns slave has got only Webmin with Cluster funtion enable to synch dns zones, Mail server has got Virtualmin GPL.

I think we will not have problems with mail server because it is using the Lan ip for virtual servers, I think that if I set correct ip on host file and restart it it will continue to works correctly, right?

On Dns slave server I need only to reconfigure cluster with the correct ip, right?

My question is regarding the public dns master and web server. It is using a Lan ip for Virtual Servers. So all modules like Apache and Mysql will continue to work correctly, right? What about Dns? I'm not using Dns plugin for Virtual servers but I'm using Dns module under Webmin. I think that under Dns zones I need only to modify record A where I set the public ip because other records has got an host setup, right? The final question is, how can I change all ip in all dns zones shortly?

If you prefer I can give you access to my pc to check together my configurations.

Thanks a lot. Bye.

Status: 
Closed (fixed)

Comments

Howdy -- yeah, it doesn't sound like you'll have any trouble with your mail server. And the slave DNS server should be okay too, outside of your Cluster tweaks -- though it wouldn't hurt to review your config files in /etc just to make sure the external IP doesn't show up in them.

For your primary server -- when using Virtualmin to manage DNS for each domain, changing the IP address would just be a matter of going into Addresses and Networking -> Change IP Address, and updating the old IP address to the new on there.

It sounds like you're saying that's being managed manually using Webmin though, rather than Virtualmin.

Unfortunately, there isn't an automated way using Webmin to update all the IP's... the automated system for changing all those IP's only works when using Virtualmin to manage the DNS.

One thing you could do is develop a script to perform a search and replace within your zone files, updating the old IP to the new one.

However, after doing so, you would also need to change the serial number listed in the zone files so that the slave servers understand a change has been made in the zone file. Changing the serial number is something that Webmin and Virtualmin would modify automatically, any time a zone file is modified. If you make changes manually, that just means you'd need to also update the serial number (usually just increasing it by one).

Hi ! Thanks a lot. I'm glad to hear that probably I will not have any problems with my mail server.

About master dns server, have you got an example script I can use? I'm searching the internet but without results.

Thanks. Regards.

Nothing? Thanks.

Sorry for the delay -- I at first wasn't able to come up with a simple way to update those IP's,

But after some digging, I realize that Jamie has built a feature into Webmin to handle that :-)

If you go into Webmin -> Servers -> BIND, and you select the DNS Zones you wish to update, you can click the "Update Records in Selected" button.

Once you do that, the next screen would allow you to update the IP address in all the records that were selected.

This sound very very good.

I was not able to see it because I have more than 200 zones, I've need to change Display options.

I already test it and it works.

Obviously, I will make a backup before.

Thanks a lot !!

Bye !!

Status: Active ยป Closed (fixed)