• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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