• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Question add ipv6 to all subscriptions at once

TomBoB

Regular Pleskian
Hi,

repost from an old Plesk 12 forum - now for Onyx 17.8#6 on CentOS 7.4

so far, we have just used ipv4 on the server, but now we have added an ipv6 adress to the server, and we would like to roll out this ipv6 adress to all customers / subscriptions at once.

configuration all done and working fine. But I'll be buggered if I have to switch ipv6 from none to the new shared one for hundreds of domains one-by-one. ;)

Just can't find it in Plesk, Plesk Online Manual, Google, or anywhere.
Is there a CLI command I can use perhaps?
 
Stood before the same problem and used the following shell script to "fix" that:
Code:
#!/bin/bash
IPV4=x.x.x.x
IPV6=y:y:y:y::y

# for domains
for d in `plesk db -Ne "select name from domains where parentDomainId=0 and webspace_id=0 and htype='vrt_hst'"`
do
    plesk bin domain -u "$d" -ip $IPV4,$IPV6
done
# for subdomains
for d in `plesk db -Ne "select name from domains where parentDomainId!=0 and htype='vrt_hst'"`
do
    plesk bin domain -u "$d" -ip $IPV4,$IPV6
done
 
Back
Top