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

Follow

Comments

5 comments

  • Avatar
    Don Duke

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

    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
    Hank

    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
    Hank

    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