- Newest
- Most votes
- Most comments
To set up a reverse DNS (PTR) record for your Amazon SES dedicated IP address, you'll need to follow specific steps since this involves configuring the reverse lookup for your IP.
For email applications using Amazon services, it's recommended to use Elastic IP addresses rather than regular public IP addresses, as you can only assign static reverse DNS records to Elastic IPs.
Here's how to create a reverse DNS record for your SES dedicated IP:
-
First, ensure you have a corresponding forward DNS record (A record) set up for your domain "system-mail.my-domain.com" pointing to your dedicated IP address.
-
To create the reverse DNS record for your SES dedicated IP, you'll need to use the AWS CLI command:
aws ec2 modify-address-attribute \
--allocation-id <your-elastic-ip-allocation-id> \
--domain-name system-mail.my-domain.com
-
After executing this command, the system will return output showing that the PTR record update is pending.
-
The change may take some time to propagate through the DNS system.
Important notes:
- Once a reverse DNS record is associated with an Elastic IP address, the address becomes locked to your AWS account and cannot be released until the record is removed.
- This setup is crucial for email deliverability as many anti-spam systems check for valid PTR records.
- You cannot create PTR records directly in the Route 53 console for Elastic IPs; you must use the method described above.
After setting up the PTR record, you can verify it using DNS lookup tools to ensure it resolves correctly to "system-mail.my-domain.com" instead of the default EC2 hostname.
Sources
Create a reverse DNS record for email on Amazon EC2 - Amazon Elastic Compute Cloud
Create PTR Record for Domain Hosted on Amazon EC2 | AWS re:Post
Relevant content
- asked 2 years ago
- asked 4 months ago
