• 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.

Moving multiple domain aliases simultaneously from one domain to another

WouterM

New Pleskian
Hi there,

Is it possible to move multiple domain aliases (eg. 30 aliases) simultaneously from one main domain to another?

This way I can move a whole group of websites simultaneously from the main domain 'myplatform2.0.com' to 'myplatform2.1.com'. This could really smoothen the way we do platform updates, since it takes away the need to set the platform in maintenance mode while updating.

Thanks, kind regards, W Monkhorst
 
AFAIK we haven't such possibility.
But you can try to use following "dirty hack" on your own risk:

Just change dom_id for alias in database and then update properties:

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -i rename.gov
Name rename.gov
Domain ppu11-5.demo.pp.plesk.ru
Status enabled
Mail On
Web On
DNS On
Seo redirect On

[root@ppu11-5 ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

mysql> select * from domain_aliases;
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
| id | dom_id | dns_zone_id | status | name | displayName | dns | mail | web | tomcat | seoRedirect |
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
| 1 | 1 | 9 | 0 | rename.gov | rename.gov | true | true | true | false | true |
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
1 row in set (0.00 sec)

mysql> update domain_aliases set dom_id=6 where id=1;
Query OK, 1 row affected (0.09 sec)
Rows matched: 1 Changed: 1 Warnings: 0

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -u rename.gov
The domain alias rename.gov properties were successfully updated.2013-08-06T15:22:30+07:00 DEBUG (7) [util_exec]: dnsmng /usr/local/psa/admin/bin/dnsmng '--update' 'rename.gov' TRUE 0.04660

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -i rename.gov
Name rename.gov
Domain nik.com
Status enabled
Mail On
Web On
DNS On
Seo redirect On
[root@ppu11-5 ~]#
 
Back
Top