Thursday, 16 May 2019

How do I resolve the error when trying to release an Elastic IP address from my Amazon EC2 instance by Raj Gupta




Issue:-

when we are getting error "The address with allocation id cannot be released because it is locked to your account" when trying to release an Elastic IP address from my Amazon EC2 instance?

Root Cause:-  

This error message is generated when a reverse Domain Name System (rDNS) record is created for your Elastic IP address. The Elastic IP address is locked to your account for as long as the rDNS record exists.

Reverse DNS (rDNS) is a method of resolving an IP address into a domain name, just as the domain name system (DNS) resolves domain names into associated IP addresses.


Solution:- 

For this we need to Request removal of the rDNS entry from AWS  by creating ticket.

Open the link Request to Remove Email Sending Limitations form

Then fill the below details:- 


  • Email Address: Your email address
  • Use Case Description: Leave blank
  • Elastic IP Address 1: The first IP address with an rDNS
  • Elastic IP Address 2: Leave blank
  • Reverse DNS Record for EIP 1: Enter please remove rDNS
  • Reverse DNS Record for EIP 2: Leave blank

Choose Submit.






Note: Removing the rDNS might take a few days to propagate through the system.

After you receive notice that the rDNS is removed then you are able to remove the Elastic IP from EC2 Server.

We can also able to check rDNS is removed or not by running the below command

If it is removed then it will give output like below
[root@ip-172-31-81-127 ~]# host 3.212.44.7

7.44.212.3.in-addr.arpa domain name pointer ec2-3-212-44-7.compute-1.amazonaws.com.

If it is not removed then it will give output like below
[root@ip-172-31-81-127 ~]# host 3.212.44.7
3.212.44.7.in-addr.arpa. domain-name-pointer mail.domain.com

No comments:

Post a Comment