• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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