DNS_PROBE_FINISHED_NXDOMAIN with S3 static website

0

I created a simple html website and add the files on S3 bucket and enabled static website. Worked pretty well using the S3 link, the HTML content was visible.

Next i registered a domain with Route 53 and created an "A" record pointing to bucket where html files exist, also registered subdomain bucket and corresponding "A" record. When i hit the domain now, it say's "DNS_PROBE_FINISHED_NXDOMAIN". Checked bucket permission and policy, all looks fine as per AWS documentation. Test record returns "NOERROR" and UDP protocol with random IP.

Domain is "expriencesaregood.com"

Struggling for almost 3 days, help much appreciated.

asked 3 years ago2361 views
2 Answers
0
Accepted Answer

Hi surivishal

Thank you for reaching out :)

The reason for DNS_PROBE_FINISHED_NXDOMAIN is typically a client-side issue, which could mean that there is a misconfiguration or there is problem with your DNS. NXDOMAIN is a DNS message type that is received by the DNS resolver when a request to resolve a domain is sent to the DNS and cannot be resolved to an IP address.

I noticed that there are no name servers listed when reviewing the domain information at your registrar which is Route 53 by using the WHOIS tooling:
https://whois.gandi.net/en/results?search=expriencesaregood.com

It seems that your name servers have not been registered, so you will have to go to Route53 Hosted Zone where you created the records sets for your domain that is is pointing to your S3 bucket. To resolve your issue you can copy your 4 name servers then go to Route 53 under registered domains and add those 4 name servers, you can follow these steps:

In Route 53, verify that the Name Servers (NS) generated by your Hosted Zone match what is listed under your Registered Domains. If not:

  1. Click on "Hosted Zones"
  2. Select your relevant domain
  3. Select the records with the NS
  4. Copy each name server from the “Value/Route traffic to” column – you can copy it all into a text file just for convenience (what is listed below are just examples, yours will be different)
    ns-1
    ns-2
    ns-3
    ns-4
  5. Now click on "Registered Domains"
  6. Select your domain and select the option to edit (Add/Edit Name Servers)
  7. Paste each entry in that you copied from the Hosted Zones and save by clicking “Update”

I hope this helps! Feel free to reach out if you have any questions.

naz97
answered 3 years ago
0

Wow, that worked like a charm. What i didnt understood is , why aws doesnt automatically update the name servers for registered domain. That obviously could have saved some time and frustration for me and many others i guess.

But thanks for the answer.

Edited by: surivishal on May 21, 2021 10:47 PM

answered 3 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.

Guidelines for Answering Questions