How to change TTL value for SOA records on all domains

Follow

Comments

4 comments

  • Avatar
    Seb

    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 https://plesk.uservoice.com/forums/184549-feature-suggestions .

  • 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.