• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question add ipv6 to all subscriptions at once

TomBoB

Silver 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