Remove additional User IP to ensure more than zero zone IPs

Version 1.61.0


Say you have User with IPs: The domain only has the additional IP: When removing from the User (with dns removed too), DA would remove it from the zone and if it ended up with zero IPs, it would re-add the default IP again. This check was fine for apache, but as the only remaining records were removed prior to the new IP being added, there was no record data to duplicate, so the default didn't add any A records, etc. Fix: change order of check to add any needed IP prior to removing the last IPs from the domain. This will ensure A/AAAA values (etc.) are duplicated prior to removing the only remaining IP, thus not an empty zone.

Interested to try DirectAdmin? Get a 30-day Free Trial!