• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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