• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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