• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Plesk CLI: Show TTL for DNS records

pmg

Basic Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Plesk Obsidian 18.0.61.5
Hi there!

Is there a way to list DNS records for a selected domain with their TTL values?
 
You can query the Plesk database directly to get TTL values. Those are stored in the dns_zone and dns_recs tables of the psa database.

However, I advice against querying the Plesk database directly to get any data. As the database structure might change in future updates. If you're working on any kind of integration I strongly recommend to not access the database directly, but use the Plesk REST API, XML API or Plesk CLI utilities instead. Those are the safest methods to use.
 
There currently isn't.

You are welcome to add it as a feature suggestion on our UserVoice page though. Features that become popular might be considered for implementation into Plesk.
 
Back
Top