• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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