• 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

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