• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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