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

Restore DNS zone via command line?

Discussion in 'Plesk 11.x for Linux' started by Hostasaurus.Com, Dec 19, 2012.

  1. Hostasaurus.Com

    Hostasaurus.Com Regular Pleskian

    30
    68%
    Joined:
    Oct 8, 2009
    Messages:
    465
    Likes Received:
    8
    I've updated the DNS template and want to restore every site's DNS zone to match the template; is there a way to do that from command line so it doesn't require clicking through the web interface five levels deep into each site to refresh the zone?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,557
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
    Look at output of command

    Especially --reset option:

     
  3. Hostasaurus.Com

    Hostasaurus.Com Regular Pleskian

    30
    68%
    Joined:
    Oct 8, 2009
    Messages:
    465
    Likes Received:
    8
    Thanks! Is it possible to make it not require the -ip argument since the panel should already know the site's IP like it does when you reset via the web interface? Then I could easily script /usr/local/psa/bin/dns --reset <DOMAIN> to reset all domains in a few seconds, but if I have to extract the site IP for each site to execute the command that will take a lot more work.
     
Loading...