Score:-1

DNS setup for no subdomain

si flag

I can't figure out why going to my website, mywebsite.app does not work, while www.mywebsite.app and anythinghere.mywebsite.app works.

Am I missing something in this DNS list?

All these CNAMEs area working

  1. * eg whocares.mywebsite.app points to my main S3 bucket and works
  2. admin eg admin.mywebsite.app points to my secondary S3 bucket and works
  3. api eg api.mywebsite.app points to my heroku app and works
  4. www eg www.mywebsite.app points to my main S3 bucket and works
  5. Those long complicated ones are for AWS certificate management

What am I missing to get mywebsite.app ie without any subdomain doing the same thing as the * rule? Why does the * not include "nothing"? enter image description here

Michael Hampton avatar
cz flag
You didn't define any records for it, that's why it doesn't work.
pbuzz007 avatar
si flag
But I can't add a blank subdomain. There must be a value for "name", so.. what would it be?
Michael Hampton avatar
cz flag
It is `@`, as shown in all the other entries and in the documentation.
pbuzz007 avatar
si flag
Ok well it's not allowed for CNAME so
Michael Hampton avatar
cz flag
Of course not; you can't set a CNAME for the naked domain.
Michael Hampton avatar
cz flag
Sorry, I took a minute to go through your post again in case I missed something. It looks like you want to host it on an S3 bucket. This requires your domain's DNS records be hosted on Route 53 so you can use Amazon's fake ALIAS record to point to the S3 bucket. You also have to set up CloudFront if you want it to work on HTTPS. Amazon has a [complete walkthrough](https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html) in their docs.
Score:1
ru flag

The * CNAME record provides an alias for arbitrary subdomains (third level), but for the second-level domain itself, there's no entry. Depending on the tool/user interface you're using, a dummy @ name may be required.

pbuzz007 avatar
si flag
But I can't add a blank subdomain. There must be a value for "name", so.. what would it be?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.