[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


set ttl in plesk 7.5 reloaded

Posted on 2008-11-07
Medium Priority
Last Modified: 2012-05-05
Need to know how to change ttl for single domain in Plesk 7.5 reloaded so we can migrate it to a new server. I do not want to change ttl for all domains on this server. All help appreciated.

Question by:tech1984

Expert Comment

ID: 22927189

Accepted Solution

kelntaylor earned 2000 total points
ID: 22957276
You can verify DNS TTL settings by with nslookup by typing set debug from within nslookup. You will then be able to see the TTL settings when you query a domain name.

Option 1 (the  best as far as I can tell)
You can edit the individual dns files for each domain here: /var/named/run-root/var/
after that you will need to run /etc/init.d/named reload

Option 2
from this web site: http://kb.parallels.com/en/154

You can set the default TTL by running this statement on the PSA database:
INSERT INTO misc VALUES ('SOA_TTL','86400');

This will change the default setting that will used for all new domains created in PLESK.
In order to recreate the named configuration files with the new default, you need to run this command:
/usr/local/psa/admin/sbin/dnsmng update websitename.com

If you would like to change the all the domains to the new default TTL you can run this line, which will run the above command on every domain:
mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{print "/usr/local/psa/admin/sbin/dnsmng update " $1 }' | sh


Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question