Remove additional User IP to ensure more than zero zone IPs

Version 1.61.0

Bugfix
Finished

Say you have User with IPs: 1.2.3.4 1.2.3.5 The domain only has the additional IP: 1.2.3.5 When removing 1.2.3.5 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 1.2.3.4 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!