🛠️ Bulk DNS Record Reset via SSH in Plesk Panel
During a migration or server transfer, you may need to update or reset DNS records for multiple domains at once.Doing this manually one by one can be extremely time-consuming and error-prone — but don’t worry, there’s an easy automated solution via SSH! 🚀
🔄 Reset All DNS Templates via SSH
Connect to your Linux server via SSH with root privileges, then run the following command to reset all domain DNS records to the specified IP address:
Code:
plesk db -Nse "select name from domains" | while read -r domain; do plesk bin dns --reset $domain -ip your_ip_address; done
📌 NOTE:
Be sure to replace
your_ip_address with your actual server IP before running the command!