• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Bulk DNS Update

D.D

New Pleskian
After migration we see some domains have still wrong records in named. There is a difference between PSA DB and named. We found and know about: http://kb.parallels.com/en/154

After run: /usr/local/psa/admin/sbin/dnsmng update domainname.com
Get errors: dnsmng: Some parameters in command string are left unprocessed. Check parameters please.
dnsmng: Some parameters in command string are left unprocessed. Check parameters please.

It looks a problem by all domains.

If try to change something in Plesk by this domain the sync is working normal, but I need to do a bulk update.
 
Found the fix:

Plesk 8.6: mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from dns_zone' | awk '{print "/usr/local/psa/admin/sbin/dnsmng update " $1 }' | sh
Plesk 11: mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{print "/usr/local/psa/admin/sbin/dnsmng --update " $1 }' | sh
 
Cheers man. This was incredibly useful after doing a bulk dns modification through phpMyAdmin after a server migration.
 
Back
Top