- Newest
- Most votes
- Most comments
Update: I was able to look at another Route 53 domain. There, name servers in the domain and the hosted zone matched. Names in the hosted zone ended with a period, those in the domain did not. I made a guess that the Lightsail installation had changed the names in my domain, not my first hosted zone. I copied the name servers from my hosted zone to my domain, dropping the ending periods. Route 53 accepted the changes. The dig command now returns the new name server names rather than SERVFAIL. Email is working.
Update Nameservers:
There are two possibilities:
-
Domain Nameservers are Incorrect: If the domain registrar's nameservers don't match the ones in your hosted zone (the one with a period at the end),
-
you need to update the domain registrar's record with the correct nameservers. This will ensure your domain points to the Route 53 hosted zone for DNS resolution.
-
Hosted Zone Nameservers are Incorrect: If the domain registrar's nameservers are correct and end without a period, then you need to update the nameservers in your hosted zone to match the ones from your domain registrar (remove the periods).
Verifying Email Settings:
Once the nameservers are updated, double-check your email settings within Route 53. Ensure MX records are configured correctly to direct emails to your desired email server.
Hello,
please try this solution it will be helpful for you.
To correct your DNS configuration and restore your email functionality after a failed Lightsail installation, start by logging into the AWS Management Console and navigating to the Route 53 dashboard. Check the NS records for your domain in the Route 53 hosted zone and compare them to the NS records listed in your domain registration. Ensure they match, noting that the NS records in the hosted zone will end with a period, which is correct syntax. Update the NS records at your domain registrar to match those in the Route 53 hosted zone if they do not already align. Next, verify that your MX records in Route 53 are correctly pointing to your email service provider and that you have the necessary TXT records for email verification, such as SPF, DKIM, and DMARC records. Use the "Test Record" feature in Route 53 to ensure there are no errors in your NS, MX, and TXT records. After making these changes, allow up to 48 hours for DNS propagation and check that you can send and receive emails. Finally, delete any unnecessary hosted zones in Route 53 to avoid confusion and ensure a clean configuration.
please look at AWS Document you will get more information.
https://docs.aws.amazon.com/lightsail/latest/userguide/lightsail-how-to-create-dns-entry.html
https://docs.aws.amazon.com/lightsail/latest/userguide/understanding-dns-in-amazon-lightsail.html
Relevant content
- AWS OFFICIALUpdated 2 years ago
