1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Apply DNS template to all domains

Discussion in 'Plesk Suggestions and Feedback' started by mooiesite, Nov 6, 2012.

  1. mooiesite

    mooiesite Basic Pleskian

    24
    23%
    Joined:
    Jun 17, 2006
    Messages:
    66
    Likes Received:
    0
    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: Nov 6, 2012
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Have you seen output of # /usr/local/psa/bin/dns --help command? I think that you can find there many interesting.
     
  3. RuslanT

    RuslanT Regular Pleskian Staff Member

    25
    70%
    Joined:
    Apr 28, 2010
    Messages:
    117
    Likes Received:
    14
    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:
     
Loading...