How to Bulk Update TTL on Plesk for server migration

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 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 ‘hourly’. You can do this in the panel for each domain name, or you can use this nifty shortcut.

First, change all the TTL’s to 3600 seconds (1 hour)

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
 UPDATE psa.dns_zone SET ttl = '3600', ttl_unit = '60' WHERE id >1;

Now you need to dump the new SOA records to zone files for bind to us:

# 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

You can test with:

# dig yourdomnain.co.uk SOA

When you have completed the migration and everything is fine, you can change the records back to the default which was 86400.

How do i connect my domain to Google Apps Email

Before connecting your domain to your Google Apps Email account you will need to determine if your domain name is parked or hosted. If your domain name is parked you will need to make the changes in your Domain Control panel – if your nameservers are NOT set to ns.microlite1.com and ns2.microlite1.com and you have hosting with us you will need to make the changes inside your Plesk control panel. If you have lost your Domain / Plesk control panel login details please go to Forgotten password to retrieve all of your login details by email.

To make DNS changes inside your Domain control panel select the domain and go to DNS Manager, please be sure to delete any existing MX records before adding the new ones. When adding the Google MX records please set the hostname for each MX record to @

To make DNS changes inside your Plesk control panel, select the domain and go to DNS Settings, please ensure that you delete any existing MX records before adding the Google MX records. When adding the records please leave the ‘mail domain’ field blank.

You are now ready to add the following MX records:

ASPMX.L.GOOGLE.COM. 1

ALT1.ASPMX.L.GOOGLE.COM. 5

ALT2.ASPMX.L.GOOGLE.COM. 5

ASPMX2.GOOGLEMAIL.COM. 10

ASPMX3.GOOGLEMAIL.COM. 10

The records are listed in priority order (smallest priority value 1 = highest priority), if you cannot add the priority values listed then you will need to add the records in the listed order.

If you experience any problems please submit a ticket to our Help Desk.

What is a SRV record?

A “SRV” or Service Locator record is a general record that can be used in a generic fashion rather than creating protocol-specific records such as MX.

Categories DNS

What is a NS record?

A “NS” record or Name Server record identifies an authoritative DNS server for a specific zone.

Categories DNS

What is an MX record?

“MX” (Mail Exchange) records are used to specify what server on the Internet is running e-mail software that is configured to handle e-mail for your domain. If you want your ISP to handle routing the e-mail for your domain to you, you need to specify the domain name or IP address of your ISP’s mail server.

In addition, you can specify the rank of each mail server when you have more than one. Make sure your ISP knows that you’re using their servers to route your domain’s email, or all your e-mail will “return to sender”!

Categories DNS