Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS issues with 3 of the 6 Cloudfront URLs #836

Open
JohnTParsons opened this issue Apr 18, 2023 · 2 comments
Open

DNS issues with 3 of the 6 Cloudfront URLs #836

JohnTParsons opened this issue Apr 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@JohnTParsons
Copy link
Collaborator

JohnTParsons commented Apr 18, 2023

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"

@JohnTParsons JohnTParsons added bug Something isn't working triage This issue will be reviewed by the team labels Apr 18, 2023
@jps jps removed the triage This issue will be reviewed by the team label Apr 18, 2023
@JohnTParsons JohnTParsons changed the title DNS issue newskit.dev-news.co.uk not working DNS issues with 3 of the 6 Cloudfront URLs Apr 19, 2023
@atanass
Copy link
Contributor

atanass commented Apr 19, 2023

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

@JohnTParsons
Copy link
Collaborator Author

JohnTParsons commented Apr 19, 2023

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")),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants