• 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/

How do I remove matching DNS records?

S

SHGreg

Guest
I would like to remove a certain DNS record from all domains that matches a certain pattern, e.g. [domain] NS ns1.nameserver.com

I know this is not possible in the Plesk GUI but is this possible somehow from the command line?

If not a simple command, is it possible for a programmer to write a script to do this? (is it technically possible)
 
From mysql

Code:
mysql -uadmin -p'cat /etc/psa/.psa.shadow' -b
use psa
delete from dns_recs where item = 'value';

You have to rebuild the named zones for each modified domain though so you would need to script that part as I odnt know of any CLI tools that plesk has to do this, although some one else here may.
 
Hi,

Thanks for the reply. How would I use variables such as [domain]?

What is involved in rebuilding the named zones?
 
Back
Top