Static website hosted in S3 using Cloudfront and Route 53 is down
My domain name is "bijusharman.com" . It was working until yesterday. I updated the html and css files in my S3 bucket today and started getting this problem. I created an invalidation record in cloudfront to make the changes immediately effective.
Dig on the domain alone gives : SERVFAIL Dig on the domain with one of NS present in hosted section of Route 53 gives : REFUSED.
After searching in google I realized that NS names should be consistent in both "Hosted Zones" section and"Registered Domain" section ; they were different. I updated the value in "Registered Domain" section with that of "Hosted Zones" section.
My queries :
All the while it was working fine why this problem ( if ever it si due to NS inconsistency) came now?
Will I have to wait until 2 days for the changes to be effective? Is there a quick way to get it resolved?
In the second case, you don't need to wait 2 days, it should be available a lot faster.
In the first question, I have no idea why it worked. If the NS are different, then your HostedZone can't manage your domain, because domain is pointing to different NameServers.
Thanks for the answer.
For Point2, should I just wait or is there anything I can do to make it fast?
Unfortunately, you need to wait, but last time when I was changing it, it was ready in a few hours.
I'm writing new answer so it will send notification :)
Please check once again Route53 Hosted Zone and Domain if the NS records are the same.
It's very important that in Hosted Zone you need .(dot) after each of the NS records. Please verify it as well.
Sorry not to update here. My issue was resolved a day ago. 1. In Hosted Zone , there are two sections : Details and Records. All the while I was trying to keep Records and Domain registrar in synch. After keeping these two ( Records and Domain registrar) same as "Hosted zone details" , the problem got resolved. 2. To fasten up the updates, I made the TTL of NS record an hour. After WHOIS reflected my changes, I reverted back the TTL to two days. 3. I remember seeing the '.' at the end of NS some where/some time. Now if I see ,the 3 places are not having '.' as suffix and still everything works fine.
Perfect! Good that you fix it :)
It is now more than 48 hours, my website is still down. There is no change in DIG responses. If I give it against one of my NS, I still get REFUSED error.
then I think you must do something wrong. Please check it once again if the NS records in Hosted Zone are the same as in the Domain in Route 53
This is a tough one to diagnose remotely but this page could provide some help? https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-name-servers-glue-records.html
Getting DNS_PROBE_FINISHED_NXDOMAIN Connected Route 53 to Google Domainasked a year ago
Adding Domain Name to CloudFront DistributionAccepted Answerasked 5 months ago
Static website hosted in S3 using Cloudfront and Route 53 is downAccepted Answerasked 5 months ago
Route53 custom domain not updating contentasked 2 months ago
Getting strange error after attach Cloudfront to S3 website.asked 3 years ago
Route 53 domain cname record without hosted zoneAccepted Answerasked 8 months ago
how to set up CloudFront using my domainAccepted Answerasked 4 months ago
Purchase expired domain (on different hosting) in Route 53asked 2 months ago
connecting Route 53 domain to Big Cartelasked 2 years ago
S3 Static Website RoutingRules when using Cloudfront and a domain nameasked 3 years ago