Is it possible to export DNS zone data for a domain using Plesk?




  • Avatar
    Don Duke

    -bash-4.2$ /usr/local/psa/bin/dns --info > dom_dns.txt
    Could not open Repository at "/etc/sw/keys": Cannot open file: /etc/sw/keys/info

    What now? :/

  • Avatar
    Lev Iurev

    Hi @Don Duke

    looks like insufficient permissions for user that tries to execute the command. that is described here

  • Avatar

    The second command includes a specific domain name and only gives me data for that domain. How can I put a wildcard or variable in there?


  • Avatar

    Ok I replaced it with $i

    # for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/dns --info $i; done > dom_dns.txt

  • Avatar
    Ivan Postnikov

    Hello @Hank,

    Thank you for the notice.

    The article will be updated soon.

Please sign in to leave a comment.

Have more questions? Submit a request