From the course: Learning Static Site Building with Hugo
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Configure DNS
- [Instructor] Your static site will live as a CloudFront Distribution with a randomly generated name. But you can update the DNS settings for your domain name so that your visitors never know the difference. In your domain registrar's web console, find the custom or advanced DNS settings page. We need to add two records here. First is a CNAME record for the host dub dub dub and the target being the CloudFront domain name, which we can copy from the CloudFront console. I'll go ahead and save that one. And then we also need to add a URL redirect record for the at sign host. And we'll point the URL to HTTPS dub dub dub dot awesomestaticsites.com. And then I want to clear out the two records that were already there. The CNAME record makes sure anyone who visits dub dub dub dot awesomestaticsites.com will actually be served the contents of your CloudFront distribution. Because of some limitations of the DNS system, we have to use a subdomain like dub dub dub. However, the URL redirect…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.