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.

Thanks
tech1984Asked:
Who is Participating?
 
kelntaylorConnect With a Mentor Commented:
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

0
 
tchamtiehCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.