• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Just took a few seconds to alter NS-record with mysql, but....

Frater

Regular Pleskian
I had to do a bulk change for NS-servers because it would have been a lot of work.
I did this:

Code:
mysql> update dns_recs set val='ns6.xxxx.nl.' where val='ns2.xxxx.net.' and type='NS';
Query OK, 128 rows affected (0.05 sec)
Rows matched: 128  Changed: 128  Warnings: 0

mysql> update dns_recs set displayVal='ns6.xxxx.nl.' where displayVal='ns2.xxxx.net.' and type='NS';
Query OK, 128 rows affected (0.46 sec)
Rows matched: 128  Changed: 128  Warnings: 0

But now I'm trying to find the proper command in Plesk 12 to apply this.
I think I need this:
Code:
# /usr/local/psa/bin/repair
Usage: repair.sh command [options]

No way it is giving me any direction when I try something....
 
# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/admin/sbin/dnsmng --update $i; done
 
In the end I did this:
Code:
#/bin/sh

mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -sNe "select name from dns_zone;" > /root/domains_list

while read domain ; do
  /usr/local/psa/admin/bin/dnsmng --update $domain
done < /root/domains_list
 
Back
Top