Skip to content

How to correct dns configuration after failed Lightsail installation

0

I have a registered, verified domain hosted by AWS in Route 53. Until recently it was used for email only. I think I have also had a hosted zone with the same name as my domain for all this time.

I attempted to install a Wordpress Lightsail instance. The installation script failed (due to lack of TXT records, I believe). During the procedure I created a new hosted zone (my second hosted zone and again with the same name as my domain) for Wordpress and I approved the replacement of name servers in an NS record, but I didn't note whether this was for my domain, for my first hosted zone or for my second hosted zone.

There must have been some other problem because the manual installation of TXT records procedure also failed AND I have not received any email after the notice of Updating domain details message.

I am most concerned about the failure to receive email. I deleted the Lightsail instance and the second hosted zone that I created for Lightsail. I still do not receive email.

I notice the name servers in my domain NS record do not match the name servers in the NS record of my hosted zone. I think that might be a problem. I don't know whether I should replace the names in my hosted zone with those from my domain or vice versa. Using the Test Record button on the hosted zone shows No Error for the NS and MX records.

I also notice that all the name server names in my hosted zone end with a period, whereas those in my domain do not. I don't know whether this is proper syntax or an error.

I'd appreciate some guidence in correcting my dns configuration and restoring my email.

Thanks

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.

asked 2 years ago443 views
3 Answers
1
Accepted Answer

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.

answered 2 years ago
EXPERT
reviewed 2 years ago
1

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.

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
1

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

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.