Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Route 53 Amazon DNS lookup fail

I recently ported my website from shared hosting to AWS. I'm using an Elastic Load Balancer connected to my instances, which are running my website, shopyoke.com. Ever since the website has been ported, some people reported that the website's DNS lookup failed:

Some people report that the scripts and stylesheets failed to load (which are hosted on CloudFront):

While some people report that everything is working perfectly! I double and triple checked that the nameservers on GoDaddy are entered accurately to what Route 53 specified. Here's what my Route 53 DNS config looks like:

I tried all the DNS tests and they all returned a healthy status. I tried a ping test but that shows 100% packet loss:

I'm really I can't think of any way to resolve this issue since it's so inconsistent among so many people.

like image 290
nkhaitan Avatar asked Dec 25 '22 17:12

nkhaitan


1 Answers

OK. It took me a day to finally figure this out, after much despair and frustration.

The gist of the issue is, the name servers defined in my "hosted zone" and the name servers as defined in my domain registration (with Route53 as the registrar), do not match. THEY NEED TO MATCH. In fact, AWS has this to say underneath the 4 name servers:

  • Before the Domain Name System will start to route queries for this domain to Route 53 name servers, you must update the name server records either with the current DNS service or with the registrar for the domain, as applicable.

This is very important. Here is what needs to be done:

Copy these 4 servers from the area of "hosted zones" into a text editor, for use later.

And then, on the left hand pane, click on "registered domains". A list of registered domains will show up. In my case, there is only one. Click on the name of the domain, and you will get to review the properties of the domain currently registered, including, on the right side, this ---> name servers.

In my case, this list of name servers is different from the one under the hosted zone above.

I need to click on "Add or Edit Name Servers". I need to override all the entries with the ones earlier that I have saved in my text editor. I copied and pasted from there into here. Clicked on "update". After a few minutes, I get an email from AWS Route 53, acknowledging and confirming that I had made such a modification request. And upon refreshing the window, the name server list has indeed been updated.

And my Route 53 is now working!

This is Sean Shen and can be contacted via [email protected], in case anybody has questions on this. I will be glad to help.

like image 149
sean Avatar answered Jan 06 '23 03:01

sean