You are viewing a single thread.
View all comments View context
5 points

Why not? (Serious question, I’m a DNS engineer so this is super relevant to me)

permalink
report
parent
reply
1 point
*

Because it’s super old fashioned. I’d expect that most of the time you host a website, you want your default domain to be the website, because that’s almost exclusively the one people might have to type in or read.

You can use content-type, accept, and/or user-agent headers to route to the appropriate non-html resources and APIs, or if you really need, those are the resources hidden behind client-specific or purpose-specific subdomains.

If they’re not making their default domain their website, then I don’t believe they take their website seriously.

permalink
report
parent
reply
1 point
*

There are many many reasons you don’t want to (or can’t) have the apex of your domain (what you’re calling the “default domain”) the primary domain name of your site. I thought you were going to argue in favor of like “home.[domain].com” or something.

The first and foremost issue is that if you wish to use a CDN, many CDN’s require a CNAME to function properly. You can’t have a CNAME share space with any other record (RFC 1912) which completely precludes using an MX record (for email) or TXT records for DKIM, SPF, and DMARC. (You need those for a secure email service). Having the CNAME sit as a subdomain of the apex (such as www) allows you to maintain those records in your domain while also serving people using that CNAME. (Some CDN’s such as Akamai even have special proprietary records that function like a CNAME while returning A records just to make this work)

permalink
report
parent
reply
2 points

I’m skeptical that you’re giving the full story, given the number of popular websites I see that use apex domains and have assets on the page that they’d want to deliver via CDN.

You don’t typical have your webpage itself delivered by CDN, you have your static assets delivered by CDN. Why can’t you put your static assets in a subdomain that gets a CNAME? Then your apex domain is also a host, and the webserver at the host is able to serve content / proxy according to the request headers.
If your entire website is static content, then I’m probably not taking it very seriously.

permalink
report
parent
reply

memes

!memes@lemmy.world

Create post

Community rules

1. Be civil

No trolling, bigotry or other insulting / annoying behaviour

2. No politics

This is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent reposts

Check for reposts when posting a meme, you can only repost after 1 month

4. No bots

No bots without the express approval of the mods or the admins

5. No Spam/Ads

No advertisements or spam. This is an instance rule and the only way to live.

Sister communities

Community stats

  • 12K

    Monthly active users

  • 2.8K

    Posts

  • 54K

    Comments