Articles in this section

Unable to remove an IP address via Plesk: IP address 203.0.113.2 cannot be removed because it is used by DNS zone of one or more domains

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • An IP address (in this example, 203.0.113.2) is set as public for a private IP address and added as a separate IP address at Tools & Settings > IP Addresses.


    Screenshot_2019-09-13_IP_Addresses_-_Plesk_Onyx_17_8_11.png

  • When removing the separate IP address, the operation fails with:

    PLESK_ERROR: Error: IP address 203.0.113.2 cannot be removed because it is used by DNS zone of one or more domains

Cause

The IP address is used as public for the private IP address which has a website hosted on it.

Resolution

Apply one of the following solutions:

Note: Make sure that the IP address you are going to remove is not used by any domain at Tools & Settings > IP Addresses > press on the number in the Sites column.

 

Removing the IP address via Plesk

 

  1. In Plesk, go to Tools & Settings > IP Addresses > <private_ip_address>.

  2. Remove the public IP address from the Public IP address field.

  3. Click OK. Wait for the process to complete.


    mceclip0.png

  4. Once the process is completed, remove the public IP address from IP Addresses.

  5. Click <private_ip_address> and specify the public IP address back. Click OK.

 

Removing the IP address manually via a command-line interface

 

  1. Connect to the Plesk server via SSH.

  2. Identify the interface on which the IP address is located:

    # ip a
    2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/void
    inet 192.0.2.2/32 brd 10.39.81.154 scope global eth0
    inet 203.0.113.2/8 scope global eth0:1

  3. Remove the IP address from the interface:

    # ip addr del 203.0.113.2/8 dev eth0

  4. Remove the old IP address:

    # plesk db "delete from IP_Addresses where ip_address='203.0.113.2'"

 

Was this article helpful?

Comments

1 comment
Date Votes
  • Hi Kuzma Ivanov

     

    The Plesk GUI screen has changed, and does not show the number of sites using an IP address any longer. Can you please fix the article?

     

    0

Please sign in to leave a comment.