How to change TTL value for SOA records on all domains in Plesk




  • Avatar

    I think it would be a good idea to also update the serial field, otherwise slave DNS servers will not update!

  • Avatar
    Bulat Tsydenov

    @Seb, Sounds like a good feature! Please, provide this suggestion on our Plesk User Voice .

  • Avatar
    Maghreb Services SARL

    Wouldn't it be safer and more consistent to use the Plesk Linux CLI commands to achieve this?

    So for Plesk Onyx running on Ubuntu Linux you could use:

    sudo plesk bin domain --list | xargs -I {} sudo plesk bin dns  --update-soa {} -soa-ttl 1D -soa-refresh 3H -soa-retry 1H -soa-expire 7D -soa-minimum 3H

    to reset all domains to the (current) SOA defaults.

  • Avatar
    Alexander Tsmokalyuk

    @Maghreb  Updated the article, thank you!

Please sign in to leave a comment.

Have more questions? Submit a request