News for hackers. Stuff that matters.
Re:Why use www? by ma2rten on Sunday June 29, 2014 @12:07PM (#7961497)
Yes.

By default, all popular Web browsers assume the HTTP protocol. In doing so, the software prepends the 'http://' onto the requested URL and automatically connect to the HTTP server on port 80. Why then do many servers require their websites to communicate through the www subdomain? Mail servers do not require you to send emails to [email protected]. Likewise, web servers should allow access to their pages though the main domain unless a particular subdomain is required.

Re:Why use www? by mattstocum on Sunday June 29, 2014 @02:04PM (#7961869)
And if any web browser supported SRV records to do this properly, we wouldn't have an issue. You don't have to use mail.domain.com because MX records were created to solve this exact issue for mail servers. SRV records were a general purpose solution to the same problem.
Re:Why use www? by justizin on Sunday June 29, 2014 @01:00PM (#7961664)
that's great, mail servers have an MX record, rather than relying on an A record for the base domain to provide only one service, which can cause confusion with other services.
Re:Why use www? by mhurron on Sunday June 29, 2014 @01:03PM (#7961681)
> Why then do many servers require their websites to communicate through the www subdomain?

You mean host. www is a host in example.com. Protocol indicator (http/https) and host name (www, mail, bob) have nothing to do with each other.

You don't have to do @host.example.com if there is a special DNS record for SMTP to indicate where to actually send mail, without it you do have to do host.example.com.

> automatically connect to the HTTP server on port 80

What HTTP server? if the URL is www.example.com we connect to the server named www, it could be named bob if we wanted. Without the host name given you have to create a catchall to tell clients to send ALL traffic without a hostname to.

The comparison between protocols is really stupid.

Re:Why use www? by nav1 on Sunday June 29, 2014 @02:07PM (#7961880)
That's absolutely not how it works. Firstly, "www" is a subdomain of "example.com". The subdomain could match the hostname of the server that hosts it, but that's rarely the case (there can be multiple servers behind a load-balancer, for example). Secondly, you don't have to create a wildcard record for "example.com" to work. You just have to add an A record for it (just like you would do for any subdomain thereof).