this post was submitted on 21 Jul 2026
130 points (97.1% liked)

No Stupid Questions

49877 readers
1062 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here. This includes using AI responses and summaries.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 3 years ago
MODERATORS
 

Every website used to be like "www.example.com". Now I rarely encounter this "www.". Why did it even exist and where has it gone? I also used to run into websites with legitimate domains, but "ww1." instead of "www.", these were probably phishing sites, but how did this actually work on top of legitimate domains?

top 50 comments
sorted by: hot top controversial new old
[–] schwim@piefed.zip 98 points 2 months ago (5 children)

www was never necessary. It was used to distinguish other connection methods for the user(imagine ftp://, mail://, gopher://, etc) but you could always choose to route your domain(and any subdomain) to your web server. It remained part of marketing because it was what people expected. People kept using it in communication because they thought it was required.

ww1. or wwtubulartitty. could be routed to any web directory/page, sometimes maintainers will use ww1/ww2/etc to show that it's routing to an alternate version of the site(like language, location, etc.).

If you visit a site that only works with www. and not without, it's almost always because the person setting up the server screwed up.

[–] heartSagan5@lemmy.zip 26 points 2 months ago (1 children)

No, it was to distinguish your web server hostname from your other service host. For example, “www.google.com” is (possibly) a different A/AAAA record than “smtp.google.com” And google.com is the domain those hosts are in, for their forward lookup.

For record, in-addr.arpa. has all the IPv4 and ip6.arpa. has all the IPv6 reverse lookup records.

[–] AlteredEgo@lemmy.ml 7 points 2 months ago

It is superfluous information as a browser address. For a browser address there is a default intention of accessing web pages.

[–] sun_is_ra@sh.itjust.works 18 points 2 months ago (1 children)
[–] heartSagan5@lemmy.zip 4 points 2 months ago

Though, until load balancers/reverse proxies came onto the scene, separating web traffic to a separate host may have been wise. But then again, that was also when it was more textual and dialup was common.

[–] Canconda@lemmy.ca 14 points 2 months ago* (last edited 2 months ago) (2 children)

remained part of marketing because it was what people expected.

It sort of matches the cadence of;

"CALL, 1-800... BLA BLA BLA... BLA-BLA BLA-BLA."

"Visit, www... DOT... BLA-BLA DOT-COM"

giving the audience a familiar auditory signal to pay closer attention to the next bit.

[–] Swedneck@discuss.tchncs.de 3 points 2 months ago

dotslashdotdashdotslashdotdash dotcom
dot com

[–] XeroxCool@lemmy.world 2 points 2 months ago

Exactly. "Go to my house dot Com" would probably trip some people up because they weren't expecting to be given a website name by audio, instead initially thinking they should go to my house, then being unsure if they missed prior info. Now, it's the default. For a similar cue reason, I still say things like "Vin number" if I'm trying to be clear as possible, particularly by phone. "can you give me the Vin" is sometimes misunderstood or misheard because "Vin" is a very mumbly word. "Vin number" gives an obvious retroactive explanation.

Humans use context in audio constantly and have to work backwards often to find the full meaning. It's just natural and smoothpy accomplished. If you've ever said "what" and then answered the question when it was being asked the second time, you worked backwards and figured it out

[–] TrickDacy@lemmy.world 5 points 2 months ago* (last edited 2 months ago) (1 children)

www was never necessary

~~It was necessary to access many websites, unless the people running the site made an alias/redirect. Which yes, usually they did. But I definitely ran into cases where that didn't happen and I worked on websites where it didn't. Was rarely/almost never my decision on how that was set up. But yes from a tech perspective no one ever had to use that subdomain.~~

Some websites were setup in a way that made it necessary to type. Apparently what I wrote above was somehow controversial.

[–] schwim@piefed.zip 3 points 2 months ago* (last edited 2 months ago) (1 children)

It was not. Sysops would choose to have port 80 land on www. but every server daemon like Apache would honor the hostname set by the maintainer, regardless of what subdomain was being called. Never was there a routing method that just looked at the subdomain to determine what to do with the request. Maintainers could choose to require a particular subdomain and prebuilt server packages/management systems offered it as a convenience but it was never mandatory.

The domain routing at the registrar would be where you would translate the name into an IP and your server would determine what to do with the request based on the port and request type. At no time during this process was www. subdomain necessary to point it to your web server daemon.

You seem to be mixing the fact that many server providers wouldn't offer you a chance to change it but that doesn't mean it was necessary to route a web request. It was just a shitty offering by the provider.

[–] Strider@lemmy.world 3 points 2 months ago

I've also never used it for my own domains. 4 characters less is a win.

[–] ada@lemmy.blahaj.zone 59 points 2 months ago (2 children)

There's two things at play here.

First, www originated in a time when the web was not synonymous with the internet. Gopher, FTP etc were a much larger part of peoples daily internet usage, and servers would have different subdomain names to account for that. ftp.tld.edu, gopher.tld.edu and www.tld.edu were all domains you might see for a single server for example. Then of course, the web grew, and the other protocols became less relevant, but the www stuck around. One of the reasons you're seeing less of it, is because that tradition is slowly fading away given its loss of daily relevance.

The other reason you're seeing less of it is that browsers often just hide it even when it's there. And that of course, will create more future instances of servers just dropping it completely.

[–] pixeldaemon@sh.itjust.works 8 points 2 months ago (4 children)

Nowdays ftp-things are like ftp:// and normal websites use https://, is this a newer thing?

[–] adespoton@lemmy.ca 26 points 2 months ago* (last edited 2 months ago) (1 children)

No — that prefix tells the OS which application to direct the address to.

The www., ftp., mail., etc. are on the server side, so the client gets directed to the correct computer owned by the domain owner.

To some degree, this quickly became irrelevant when virtual hosting became a thing; you could have something watching on the server side that would see an attempt to connect to port 80 or port 443, check the domain the client is looking for, and redirect them to the right internal or external IP address.

With the onset of CDNs, it became even less meaningful since load and availability balancers will now decide what computer will eventually receive the request.

All you really need is the URI (https://) and the port (:443) and everything else can be a black box.

Why don’t we see :80 and :443 on URLs anymore? Because a web browser, when it handles the URI request, auto-maps to the default ports for that URI unless it is explicitly told to use another.

As a result, you can enter example.com into a browser address bar, and you’ll automatically be taken to [https://guest@www.example.com/ :443/] but all you’ll see on the browser bar is example.com.

[edit] hah; even Lemmy is munging my URLs to remove the bits it deems unnecessary.

[–] SatyrSack@quokk.au 9 points 2 months ago

[edit] hah; even Lemmy is munging my URLs to remove the bits it deems unnecessary.

Use backticks to tell us exactly without Lemmy attempting to correct you or parse anything

`https://www.example.com/`

becomes

https://www.example.com/

[–] Dultas@lemmy.world 5 points 2 months ago

Those are schemes and they are not new, there are many others as well. Some you may see in a browser are http, mailto, file. Others that you won't typically see in browsers include ldap(s), imap, jdbc, odbc, etc. https://en.wikipedia.org/wiki/List_of_URI_schemes

[–] heartSagan5@lemmy.zip 5 points 2 months ago

Okay. ftp://, http://, https:// are associate with protocols that operate on a common port. You can execute “cat /etc/protocol” (on macOS or Linux terminal) and see each associate common port and their protocol name.

The protocol is associated with a port that is open on a host, which is associated with a process in the OS and that process listens and “talks” those ways when a host connects with a client, like a web browser.

[–] NABDad@lemmy.world 4 points 2 months ago

Newer, yes. Not very new.

The URL format of protocol://hostname.domain:port/path was defined in 1994. Prior to that you would use use an ftp client, usually on the command line like:

ftp hostname.domain

[–] blazeknave@lemmy.world 3 points 2 months ago

Fuck winsock.dll. fuck that file.

I remember being little and my dad was shaving for work for his weekend job and dragging him to my PC to show him all the other protocol apps I had downloaded.

BBS guy. Never got him on mirc.

[–] Kazumara@discuss.tchncs.de 33 points 2 months ago (1 children)

Back when people still hosted their own email and web pages and domain controllers etc, it was more common to break it out into subdomains. The www subdomain was for the web stuff that the webmaster would administer. Nowadays everything is outsourced, and you just point your main domain ar whatever webhosting company you're using.

But it was always possible to have a normal A record on your main domain and have a webserver listen to its port 80.

I guess at some point everybody got so used to the world wide web just being there and every business being on it, that using the cool alliteration didn't feel necessary anymore.

[–] creamfresh@lemmy.world 3 points 2 months ago (2 children)
[–] Flatfire@lemmy.ca 4 points 2 months ago

Domain names are just human-readable addresses for a web server. An A record is just a pointer to the IP address of the web server a given domain name represents. It's what domain name servers use to tell your browser where it actually needs to send your request.

[–] Kazumara@discuss.tchncs.de 3 points 2 months ago

The A record is the record in a DNS entry that contains the IPv4 address to which you wish to map the name in general.

There are various others, for example the AAAA record is the one that contains the IPv6 address, the MX record is the one that contains the name of your mail server, the NS record contains the name of your nameserver, the SOA record has refresh timers and contact information for the zone admin, RRSIG records have cryptographic signatures proving authenticity of various other bits.

Another interesting one in this context would be CNAME, there you can put the canonical name you'd like the user to look up instead of the one they were asking for. So you can leave out the A and AAAA, and put in a CNAME instead if you want to tell the user to look somewhere else.

For example you can put in the DNS entry for www.example.com a CNAME record containing "example.com". Now if a user comes asking for the A record of www.example.com, they will find the CNAME instead and know that they are supposed to look at the A record of example.com instead, because there isn't a separate IPv4 address specifically for www.example.com.

[–] pulppanda@lemmy.world 24 points 2 months ago

Hey something I can answer!

TLDR: Because most owners of domains want their emails to have the same root (e.g.: bobby@acme.com as the email and acme.com as the website)

TLDR word salad: RFC rules restricts root domain CNAME records from coexisting with other DNS record types. Early internet bypassed this by pointing the website to subdomain www.example.com with a CNAME record; while hosting MX record at the root example.com Modern dns services have CNAME flattening which dynamically responds to an A record query at the root example.com with multiple ips

Also DNS is complicated


Some of the comments here describe the results of what happened but do not touch on the reason behind why www was common and why it is not anymore

The reason is very boring: because the rules say so. Specifically https://www.rfc-editor.org/info/rfc1034/ "If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its liases cannot be different."


To discuss this further we need to breakdown what is part of the url in the first place so we don't mix things up. e.g. https://www.google.com/

https --> specifies the protocol here its http encrypted over TLS (SSL if your old)

: --> separates the protocol from the rest of the url

// --> fun hold over https://archive.nytimes.com/bits.blogs.nytimes.com/2009/10/12/the-webs-inventor-regrets-one-small-thing

www --> subdomain

google.com --> root domain

.com --> top level domain https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains


Now for some common DNS address types you are probably already familiar with are

A records (amazon.com translates to ipv4 98.87.170.71)

AAAA records (google.com translates to ipv6 2607:f8b0:4004:c1f::71)

MX record (tells where your email goes to)

CNAME record (points to another DNS record name - usually an A record)


So why does a domain restriction on CNAME interfere with a website?

Because most owners of domains want their emails to have the same root.

And the rules do not allow for the root domain name to have both a CNAME and a MX record

For example, to have bob@amazon.com work.

A top level MX record for amazon.com must be published.

If an MX record for amazon.com exists CNAME can not exist.

So in the early days of the internet, a compromise standard was made.

MX records live at the root (eg: amazon.com) to direct mail for bob@amazon.com

CNAME records live at www. subdomain (eg: www.amazon.com) to direct web traffic


Why not just drop the CNAME at the root?

Use MX for mail at the root and A record at the root for website!

This will work perfectly fine actually. There's nothing functionally wrong with this.

In fact you can have your root A record round robin to several ips.

So your traffic can be roughly distributed at the DNS level across a few computers.

But this is generally a bad idea (without DNS health checks and other newer fancy things)

Because the actual computer behind your ip will inevitably crash, or update, or die, or reboot.

And now your website is fully down (1 ip) or partially down (1/3 of all traffic for example if you published 3 ips)


Why use CNAMEs at all?

Usually the CNAME record will point to some sort of load balancer. Think of this as router, it takes traffic in and sends it down to individual computers. If a computer dies, it takes it off from the available pool of computers; so that your traffic will hopefully live (session cache layer, etc, etc)

So in the old days DNS looked like this

MX record --> mail

CNAME record --> A record load balancer ips --> fleet of computers with internal ips added and dropped by lb


How does modern internet get on with root web traffic?

Some smart people got tired of typing www all the time so they invented CNAME flattening (DNS flattening) The DNS service provider, will dynamically update, and serve a fleet of individual ips as A records to the root domain lookup.

So now DNS looked like this

MX record -> mail

A record that keeps updating -> load balancer ips -> fleet of computers internal ips added and dropped by lb


Isn't that similar to old days? Why don't I just update my A records myself in the old days? Wouldn't that be the same?

That's actually exactly the same. The only problem with doing it yourself in the old days is DNS is hard.

DNS is basically a globally distributed cache managed at different layers by different people.

You COULD update the A records constantly yourself. You can even set your own record TTL to be 0 or 60seconds. However, random guy halfway across the world using budget ISP will not see your DNS update propagate to them for a few hours, sometimes 24 hours in worst case scenarios.

Modern DNS service providers (cloudflare, aws route53, etc, etc) has their own DNS hosted nodes distributed across the world for you so they auto update the records constantly for you to ensure no stale DNS hits if possible.


Practical Validation:

Since DNS is public you can run some queries yourself to see how DNS is managed by large companies

I'll use amazon.com as example root MX record: https://mxtoolbox.com/SuperTool.aspx?action=mx%3Aamazon.com&run=toolpage

--> this is what makes your mail work

root A record: https://mxtoolbox.com/SuperTool.aspx?action=a%3Aamazon.com&run=toolpage

--> this is CNAME flattening of the root

--> note the 3 ips - these are the dynamic ips of the load balancer for the region mxtoolbox is running in

root CNAME record: https://mxtoolbox.com/SuperTool.aspx?action=cname%3Aamazon.com&run=toolpage

--> does not exist! because it can't. MX record already lives here

subdomain CNAME record: https://mxtoolbox.com/SuperTool.aspx?action=cname%3Awww.amazon.com&run=toolpage

--> this exists! to route traffic to the web server

--> this is going to be some weird address <randomstring>-frontier.amazon.com this is some CDN that amazon uses to push traffic as close to the edge location where you are at to reduce page load times because physics exists
[–] Kolanaki@pawb.social 15 points 2 months ago (3 children)

It's still there, you just don't need it since it's usually a given. Like how you didn't need to actually type out "http://" back in the day.

[–] jasoman@lemmy.world 18 points 2 months ago (1 children)

I am upset only by "back in the day.".

[–] Kolanaki@pawb.social 15 points 2 months ago (2 children)
[–] achsonaja@lemmy.world 5 points 2 months ago

In the 1900s

[–] Zier@fedia.io 2 points 2 months ago

aka, last decade.

[–] dev_null@lemmy.ml 6 points 2 months ago* (last edited 2 months ago) (5 children)

That's not true. It's usually not there, and unlike "http(s)://", the browser doesn't assume it for you. www.example.com and example.com can be different websites, so a browser cannot assume the "www".

In fact try going to your own instance: www.pawb.social

It doesn't work with "www".

load more comments (5 replies)
load more comments (1 replies)
[–] nonentity@sh.itjust.works 15 points 2 months ago (1 children)

I’ve always made the ‘www.’ work for any site I’ve administered, but they immediately redirect with a 301 to the same url without it. It’s never been necessary, and I’ve always found it an eyesore.

Start with reading the documentation that explains this config:

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1$1 [R=301,L]
[–] meejle@piefed.world 3 points 2 months ago (1 children)
[–] nonentity@sh.itjust.works 8 points 2 months ago (1 children)

You’re free to be wrong.

load more comments (1 replies)
[–] celia@lemmy.blahaj.zone 13 points 2 months ago

The company owns the "example.com" domain name and can put what they want before it. The "www." part (which stands for World Wide Web) was a convention for the company to put their website on, as other subdomains may be used for other services than websites. As time went on, companies started to make the "example.com" itself point to the website as it is shorter and easier to type/remember, and made the "www.example.com" redirect you to "example.com" for retrocompatibility

[–] p_consti@lemmy.world 9 points 2 months ago

In addition to all the good answers, there also the case that most browsers just hide it nowadays. Go to google.com, you'll see only that text in the URL field, the http(s)://www part is only shown when you click into the field, because as many have already said, it's redundant in today's infrastructure

[–] heartSagan5@lemmy.zip 6 points 2 months ago

It’s been “hidden” since Chrome v95 or something. Also, many companies might just host their web service on their main domain name.

Also, hit Ctrl+Enter in any browser and it’ll tack that right on it and goto the webpage or hit a redirect or 5…whatever their architect setup.

google.com may be a CNAME to www.google.com (for example).

The www (or whatever hostname) is just to balance the web traffic from the other Internet services, like SMTP, POP3, IMAP, FTP, etc.

[–] Eat_Your_Paisley@lemmy.world 6 points 2 months ago (1 children)

I know its not necessary but I still type it because I'm old and have muscle memory

[–] heartSagan5@lemmy.zip 4 points 2 months ago* (last edited 2 months ago)

Here, hit Ctrl+Enter…after google/facebook and it’ll pop it right in there.

[–] albbi@piefed.ca 4 points 2 months ago (1 children)

www. plays in my head a fair bit. It's that song that has the ICQ Uh Oh sound in it.

[–] Rhynoplaz@lemmy.world 3 points 2 months ago

Never heard this one before, but I clicked it just to hear the uh oh.

load more comments
view more: next ›