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

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