set ttl in plesk 7.5 reloaded

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.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:

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

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.