• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Apply DNS template to all domains

mooiesite

Basic Pleskian
Im testing migration from plesk 9.5.4 to 11
After migrating domains these new domains have a combination of old dns template and new one.

When i try to apply the new dns template to all migrated domains i get the following choice:

1. Apply the changes to unaltered zones. If a zone was customized (new records were added or existing ones were changed), Panel will not apply the changes from the template to such zones.

2. Apply the changes to all zones. Panel will apply changes from the template to all DNS zones including the customized ones. Note that user-modified records always remain intact. For example, if the template contains a new record that was already added by a customer, Panel will keep the customer's record.


Im actually missing option 3. Delete all old records (including user-modified records ) and apply the new template to all zones/domains, no matter what :)

Anyway of achieving this? (sql is ok)
 
Last edited:
Have you seen output of # /usr/local/psa/bin/dns --help command? I think that you can find there many interesting.
 
Im actually missing option 3. Delete all old records (including user-modified records ) and apply the new template to all zones/domains, no matter what :)
You can restore DNS zone with button Restore Defaults on the DNS zone page.
or use --reset command of the /usr/local/psa/bin/dns utility:
--reset or -res <domain_name|domain_alias_name>
Restores the default DNS zone by the
template
 
Back
Top