• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

www CNAME DNS entries missing in migrations. How to correct it and prevent from happening again

Miguel_Tellería

Basic Pleskian
[Plesk 12.0.1 #57 on CentOS 6.6 in both origin and destination machines

Dear all,

After a mass migration of ~100 subscriptions I see that many of them lack the www CNAME in their DNS zone.

Browsing the /usr/local/psa/PMM/logs/<logdate>/deploy.log I see a line that differs in the domains with and without www.

For domains WITH www CNAME the following line has the -www parameter to true.

INFO: Request is ready for: PLESK_RESTORE_MODE=1 PLESK_DISABLE_PROVISIONING= LANG=en_US.UTF-8 ALLOW_WEAK_PASSWORDS= /usr/local/psa/admin/plib/api-cli/domain_pref.php '--update' 'domain_with_www.com' '-no_usr' 'reject' '-webmail' 'roundcube' '-main_site_only' 'true' '-keep_traf_stat' '13' '-www' 'true' '-ignore-nonexistent-options'

For domains WITHOUT www CNAME the following line has the -www paremeter to false.

INFO: Request is ready for: PLESK_RESTORE_MODE=1 PLESK_DISABLE_PROVISIONING= LANG=en_US.UTF-8 ALLOW_WEAK_PASSWORDS= /usr/local/psa/admin/plib/api-cli/domain_pref.php '--update' 'domain_without_www.com' '-no_usr' 'reject' '-webmail' 'roundcube' '-main_site_only' 'true' '-keep_traf_stat' '13' '-www' 'false' '-ignore-nonexistent-options'

The thing is that in the latest case, the www CNAME was also present in the zone in the original server (file /var/named/chroot/var/<zone>). So I conclude in those cases Plesk considered the www as a "manual addition" and did not propagate it to the destination.

Regarding all this, I would like to ask the following questions

- What is the best way to correct this (and the fix persistent for future migrations?. I am asking for CLI command that would set the www value as true and regenerate the DNS CNAME record.

- is there a way (CLI or database query) to find this change beforehand, so that it can be fixed on the source before the migration?

Regards,

Miguel Telleria
 
Back
Top