{"id":1305,"date":"2012-03-21T10:18:23","date_gmt":"2012-03-21T10:18:23","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=1305"},"modified":"2012-03-21T10:18:53","modified_gmt":"2012-03-21T10:18:53","slug":"how-to-bulk-update-ttl-on-plesk-for-server-migration","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/","title":{"rendered":"How to Bulk Update TTL on Plesk for server migration"},"content":{"rendered":"<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"Plesk DNS and Bind\" src=\"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg\" alt=\"\" width=\"315\" height=\"240\" align=\"right\" \/>Re: Preparing for a Plesk server migration, Bulk change TTL on Plesk<\/strong><\/p>\n<p>Occasionally you need to move all your clients to a new server. The hardware becomes aged (or slow) but the thought of moving all those clients (hundreds) and the DNS propagation time delay, not something that makes you feel great.<\/p>\n<p>However, you can minimise the DNS propagation times by changing the TTL (Time To Live) on the Plesk domain DNS records. Usually the refresh rate is between daily and weekly. In preparation for a server migration, around a week before, change all domains to update &#8216;hourly&#8217;. You can do this in the panel for each domain name, or you can use this nifty shortcut.<\/p>\n<p>First, change all the TTL&#8217;s to 3600 seconds (1 hour)<\/p>\n<pre># mysql -uadmin -p`cat \/etc\/psa\/.psa.shadow` psa\r\n UPDATE psa.dns_zone SET ttl = '3600', ttl_unit = '60' WHERE id &gt;1;<\/pre>\n<p>Now you need to dump the new SOA records to zone files for bind to us:<\/p>\n<pre># 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<\/pre>\n<p>You can test with:<\/p>\n<pre># dig yourdomnain.co.uk SOA<\/pre>\n<p>When you have completed the migration and everything is fine, you can change the records back to the default which was 86400.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Re: Preparing for a Plesk server migration, Bulk change TTL on Plesk Occasionally you need to move all your clients to a new server. The hardware becomes aged (or slow) but the thought of moving all those clients (hundreds) and the DNS propagation time delay, not something that makes you feel great. However, you can &#8230; <a title=\"How to Bulk Update TTL on Plesk for server migration\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\" aria-label=\"More on How to Bulk Update TTL on Plesk for server migration\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[166,199],"tags":[],"class_list":["post-1305","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","category-dns"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.4 (Yoast SEO v23.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Bulk Update TTL on Plesk for server migration - UK-Cheapest.co.uk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Bulk Update TTL on Plesk for server migration\" \/>\n<meta property=\"og:description\" content=\"Re: Preparing for a Plesk server migration, Bulk change TTL on Plesk Occasionally you need to move all your clients to a new server. The hardware becomes aged (or slow) but the thought of moving all those clients (hundreds) and the DNS propagation time delay, not something that makes you feel great. However, you can ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-21T10:18:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-03-21T10:18:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg\" \/>\n<meta name=\"author\" content=\"UKC\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UKC\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\",\"name\":\"How to Bulk Update TTL on Plesk for server migration - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg\",\"breadcrumb\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg\",\"contentUrl\":\"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Bulk Update TTL on Plesk for server migration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\",\"name\":\"UKC\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ukchelpdesk\",\"https:\/\/www.instagram.com\/ukc_hosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746\",\"name\":\"UKC\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"caption\":\"UKC\"},\"sameAs\":[\"https:\/\/www.uk-cheapest.co.uk\"],\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Bulk Update TTL on Plesk for server migration - UK-Cheapest.co.uk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/","og_locale":"en_GB","og_type":"article","og_title":"How to Bulk Update TTL on Plesk for server migration","og_description":"Re: Preparing for a Plesk server migration, Bulk change TTL on Plesk Occasionally you need to move all your clients to a new server. The hardware becomes aged (or slow) but the thought of moving all those clients (hundreds) and the DNS propagation time delay, not something that makes you feel great. However, you can ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2012-03-21T10:18:23+00:00","article_modified_time":"2012-03-21T10:18:53+00:00","og_image":[{"url":"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg"}],"author":"UKC","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"UKC","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/","name":"How to Bulk Update TTL on Plesk for server migration - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage"},"thumbnailUrl":"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg","breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#primaryimage","url":"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/images\/wpdns.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-to-bulk-update-ttl-on-plesk-for-server-migration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"How to Bulk Update TTL on Plesk for server migration"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746","name":"UKC","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","caption":"UKC"},"sameAs":["https:\/\/www.uk-cheapest.co.uk"],"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1305"}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=1305"}],"version-history":[{"count":4,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1305\/revisions"}],"predecessor-version":[{"id":1309,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1305\/revisions\/1309"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=1305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=1305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=1305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}