Rename hostname zone during hostname change

Version 1.53

Feature
Finished

The "How to change your hostname" guide: https://help.directadmin.com/item.php?id=405 Uses two steps, where the 2nd step is to manually create the 2nd zone. This change will replace step 2 by simply renaming the old hostname zone, if it exists, to the new value. This is done internally in DA, rather than in the hostname.sh, because of the large number of actions done for dns writes (templates, pre/post script, dns clustering with MSS), rather than fighting with a mess of regexes and task.queue pushes. New directadmin.conf option with internal default: named_rename_hostname_zone=1 so if you regularly change your hostname, but do not want DA to change the zone associated with it, set: named_rename_hostname_zone=0

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