• 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.

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