Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to add IPv6 address for all subscriptions that have specific IPv4 in Plesk?

 
dnsdomainsinterfaceiplinux

Question

It's required to add IPv6 address to all subscriptions that use specific IPv4.

For example, for all subscriptions that use 203.0.113.2 IP it's required to add 2001:db8:f61:a1ff:0:0:0:80 address.  
How to perform this operation?

Answer

For Linux:

  1. Log into the server via SSH.
  2. In case of IPv6 was added to the server execute below command to add it to Plesk:

    # plesk bin ipmanage --reread

    In case of IPv6 was not added to the server execute below command. It will add IPv6 to the server and Plesk:

    # plesk bin ipmanage -c '2001:db8:f61:a1ff:0:0:0:80' -mask 64 -interface eth0 -type shared

  3. Make sure that the required IPv6 address is presented in reseller's IP pool in Plesk > Resellers > John Doe > More Tools (IP addresses) > Add ID Address.
  4. Find all domains that use specific IPv4, in example below it's 203.0.113.2:

    # plesk db -NBe 'select d.name,ip.ip_address from domains d left join dom_param dp on d.id=dp.dom_id left join IP_Addresses ip on dp.val=ip.id where dp.param="ip_addr_id" and ip.ip_address="203.0.113.2";' > domlist.txt

    Note: check that domlist.txt contains correct information.

  5. Execute below command to add IPv6 for the list of subscriptions specified in domlist.txt:

    # cat domlist.txt | while read a b; do echo "$a - $b"; plesk bin subscription -u $a -ip "$b",'2001:db8:f61:a1ff:0:0:0:80' -mail-service-ip "$b",'2001:db8:f61:a1ff:0:0:0:80';done

    Note: it will also add IPv6 for mail service to Subscription DNS settings. Remove option -mail-service-ip "$b",'2001:db8:f61:a1ff:0:0:0:80' if it's not required.

For Windows:

  1. Login to the server via RDP.
  2. In case of IPv6 was added to the server execute below command to add it to Plesk:

    C:> "%plesk_bin%ipmanage" --reread

    In case of IPv6 was not added to the server execute below command. It will add IPv6 to the server and Plesk:

    C:> "%plesk_bin%ipmanage" -c "2002:7b7b:7b:9b::1" -mask 64 -interface "Ethernet" -type shared

  3. Find all domains that use specific IPv4, in example below it's 203.0.113.2:

    C:> plesk db -NBe "select d.name,ip.ip_address from domains d left join dom_param dp on d.id=dp.dom_id left join IP_Addresses ip on dp.val=ip.id where dp.param='ip_addr_id' and ip.ip_address='203.0.113.2';" > C:domlist.txt

    Note: check that C:domlist.txt contains correct information.

  4. Execute below command to add IPv6 for the list of subscriptions specified in C:domlist.txt:

    C:> for /F "tokens=1,2* " %a in (C:domlist.txt) do "%plesk_bin%subscription" -u %a -ip %b,"2001:db8:f61:a1ff:0:0:0:80" -mail-service-ip %b,"2001:db8:f61:a1ff:0:0:0:80"

    Note: it will also add IPv6 for mail service to subscription DNS settings. Remove option -mail-service-ip "%b",'2001:db8:f61:a1ff:0:0:0:80' if it's not required.

 

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »

Linux Logs Explained

Read More »

DNS_PROBE_FINISHED_NXDOMAIN: What Is It And How To Fix The Problem

Read More »
Knowledge Base

Unable to issue a Let’s Encrypt certificate for a domain or its mail in Plesk: the DNS challenge used another IP address

Read More »

Websites on Plesk server are slow or show error 500 or PHP mail cannot be sent: ap_pass_brigade failed

Read More »

Mail delivery does not work: do not list domain in BOTH mydestination and virtual_mailbox_domains

Read More »

Mail stuck in the queue in the server with Plesk: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)

Read More »

Hosting Wiki

  • DBMS Interface
  • Server Redundancy
  • QMAIL
  • Sendmail
  • Linux Containers
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • JavaScript
  • Domain
  • Plesk
  • Web Server
  • Static DNS
  • DNS Server
  • DNS Forwarding
  • Reverse DNS
  • IPv6
  • IPv4
  • SIP
  • SSH
  • UDP/IP
  • Email Autoresponder
  • Mailing Lists
  • Email Alias
  • Email Virus Protection
  • Email Forwarding
  • Webmail
  • TCP/IP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family