- Plesk for Linux
- Unable to remove IP from the server:
PLESK_ERROR: Error: IP address 203.0.113.2 cannot be removed because it is used by DNS zone of one or more domains. Cannot remove the IP address 203.0.113.2 because it is the primary IP address of a network interface.
- IP address 203.0.113.2 is set as public for another IP address in Plesk > Tools & Settings > IP Addresses.
The IP is used as Public for other IP which has a website hosted on it.
Remove the IP address manually from the server:
Connect to the server via SSH;
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
inet 192.0.2.2/32 brd 10.39.81.154 scope global venet0:0
inet 203.0.113.2/8 scope global venet0
Remove the IP address from the interface:
# ip addr del 203.0.113.2/8 dev venet0
Access Plesk database;
Remove the required IP:
MYSQL_LIN: mysql> delete from IP_Addresses where ip_address='203.0.113.2';
Note: Make sure that this IP address is not used by any domain.