Hi guys. I would like to create a script that will do the following.
Is this possible?
1. If it loses connectivity to the internet, I want the server to
switch itself to DHCP client mode to obtain new lease, then have it
set itself up statically with the new info. To do this , the server
would have to change its eth0 configuration to dynamic setup, and run
dhcpd client deamon to obtain new lease. Then , it would have to
change the eth0 configuration again to set itself statically.
2. Modify my named.conf file to update itself to a new ip address (
if the ip changes )
Modify the zone files with the new ip address, and increase the
serial. I know its a lot of work, but is this possible? anyone here
attempted on doing this before?