DNS issues with 3 of the 6 Cloudfront URLs
JohnTParsons opened this issue · 2 comments
Looking at https://github.com/newsuk/nuk-cdn/tree/master/packages/distributions/newskit.co.uk
3 out of 6 DNS tests are not working as expected.
(a) PROD has 2 out of 2 DNS successes. Good
Given prod contains the lines
origin = "ncu-newskit-docs-prod.s3-website-eu-west-1.amazonaws.com"
custom_domains = ["www.newskit.co.uk", "newskit.co.uk"]
When going to Cloudfront URL https://www.newskit.co.uk/tools/preview-illustration-export/
Then it correctly shows content from http://ncu-newskit-docs-prod.s3-website-eu-west-1.amazonaws.com/tools/preview-illustration-export/
And when going to alternate Cloudfront URL https://newskit.co.uk/tools/preview-illustration-export/
Then it correctly shows same content
(b) STAGING has 1 out of 2 DNS successes! Bad
Given stag.tfvars with the lines
origin = "ncu-newskit-docs-staging.s3-website-eu-west-1.amazonaws.com"
custom_domains = ["www.newskit.staging-news.co.uk", "newskit.staging-news.co.uk"]
When going to Cloudfront URL https://www.newskit.staging-news.co.uk/tools/preview-illustration-export/
Then it correctly shows content from http://ncu-newskit-docs-staging.s3-website-eu-west-1.amazonaws.com/tools/preview-illustration-export/
And when going to alternate Cloudfront URL https://newskit.staging-news.co.uk/tools/preview-illustration-export/
Then it SHOULD shows same content
BUT instead says, "This site can’t be reached. DNS_PROBE_FINISHED_NXDOMAIN"
(c) DEV has 0 out of 2 DNS successes!! Very bad
Given dev with the lines
origin = "ncu-newskit-docs-dev.s3-website-eu-west-1.amazonaws.com"
custom_domains = ["www.newskit.dev-news.co.uk", "newskit.dev-news.co.uk"]
When going to Cloudfront URL https://www.newskit.dev-news.co.uk/tools/preview-illustration-export/
Then it SHOULD show content from http://ncu-newskit-docs-dev.s3-website-eu-west-1.amazonaws.com/tools/preview-illustration-export/
BUT instead says, "This site can’t be reached. DNS_PROBE_FINISHED_NXDOMAIN"
And when going to alternate Cloudfront URL https://newskit.dev-news.co.uk/tools/preview-illustration-export/
Then it SHOULD shows same content
BUT instead says, "This site can’t be reached. DNS_PROBE_FINISHED_NXDOMAIN"
www.newskit.staging-news.co.uk works because of this record
newskit.staging-news.co.uk DOESN'T work because of this record
www.newskit.dev-news.co.uk works because of this record
newskit.dev-news.co.uk DOESN'T work because of this record
Atanas advises replacing the out-of-date 4-line section in staging config with this single line:
R53_ALIAS("newskit", "A", "d361ybor7ruvjs.cloudfront.net.", R53_ZONE("Z2FDTNDATAQYW2")),
and replacing the out-of-date 4-line section in dev config with this single line:
R53_ALIAS("newskit", "A", "dzgo1oqy4dugt.cloudfront.net.", R53_ZONE("Z2FDTNDATAQYW2")),