I receive the error "The specified Static IP address cannot be released from your account. A reverse DNS record may be associated with the Static IP address." when I delete a static IP address from my Amazon Lightsail console.
Short description
You receive this error message if a reverse Domain Name System (rDNS) record was previously created for your static IP address and the entry isn't removed.
To confirm if the static IP address has rDNS mapping to the domain, run the following command on the Terminal or Powershell:
$ nslookup -type=ptr 8.8.8.8
Note: Replace IP address 8.8.8.8 with your static IP address.
If the rDNS record doesn't end with "compute.amazonaws.com" but instead ends with a custom record of your domain, then you must request for rDNS removal.
Resolution
To resolve the issue, submit a request to remove the rDNS record for the static IP address.
- Open the Request to remove email sending limitations form.
- Complete the form with the following information:
Email Address: Your email address.
Use Case Description: Provide your specific use case for requesting rDNS removal.
Elastic IP address: Your IP address.
Reverse DNS record: Enter "Remove rDNS record".
Note: You can enter up to 100 Elastic IP addresses.
- Choose Submit.
Note: rDNS removal can take a few hours to propagate through the system.
After you submit the request form, you receive an email with the Request ID. It can take up to 48 hours to process your request. If your request is approved, then you receive an email to notify you that the rDNS record is removed. If you don't receive an update within 48 hours, then reply to the initial email that you received.
After you receive confirmation that the associated rDNS record is removed, delete the static IP address from the Lightsail console.