News for hackers. Stuff that matters.
Re:Heroku encourages use of www. prefix for domains after DDoS by erikpukinskis on Monday May 23, 2011 @05:37AM (#2575437)
My first reaction was that this is a crock... after all, don't all the big hot internet companies use root domains? But I looked into it, and Facebook, Google, Apple (and Heroku) .coms all redirect to www. Only Twitter rocks the bare root domain.

I rely heavily on root domains in my printed materials (sending people to sproutrobot.com/water and such), but I'm starting to think redirecting users to www--so bookmarks, social media and the like point there and the majority of my users hit www first--is a good idea.

Re:Heroku encourages use of www. prefix for domains after DDoS by ryantownsend on Monday May 23, 2011 @05:54AM (#2575459)
If you were worried about non-www links working during downtime/issues, you could setup multiple cheap hosts around the world with nothing more than a rewrite to the www. subdomain (where your main app is hosted). Then add the multiple IPs to your root domain's A records - that way you have no configuration to worry about (the non-www hosts literally just redirect to the same path on a different domain), and you don't have to worry about those redirects going down due to DNS round robin on multiple hosts.
Re:Heroku encourages use of www. prefix for domains after DDoS by billpg on Monday May 23, 2011 @06:52AM (#2575537)
I'd be surprised if there isn't someone offering this as a service already.
Re:Heroku encourages use of www. prefix for domains after DDoS by eli on Monday May 23, 2011 @08:06AM (#2575677)
Sure, lots of commercial DNS services offer URL redirection. I know dnsmadeasy does it, as does namecheap.
Re:Heroku encourages use of www. prefix for domains after DDoS by yuvadam on Monday May 23, 2011 @05:00AM (#2575376)
This is an interesting point. The www. prefix seems to be slowly fading away from the landscape, but URLs without the prefix never felt like first-class citizens on the web.

The inability to use CNAMEs in root level domains also affects other aspects, such as load balancing [1].

[1] - http://blog.y3xz.com/post/3920967238/the-anomaly-of-amazon-e...

Re:Heroku encourages use of www. prefix for domains after DDoS by delinka on Monday May 23, 2011 @05:46AM (#2575451)
My reading of the heroku post seemed to indicate that the recommendation is for heroku customers only. Of course, if your own systems are using reverse proxy to serve up content, then the advice may also apply to you.
Re:Heroku encourages use of www. prefix for domains after DDoS by hassy on Monday May 23, 2011 @07:28AM (#2575607)
I think "www" will make a comeback with increasing popularity of non .com/.net/.org TLDs. "whatever.io" looks like a web address to most of us here, but not to many others, even computer-savvy "normals".
Re:Heroku encourages use of www. prefix for domains after DDoS by temptemptemp13 on Monday May 23, 2011 @07:40AM (#2575631)
But the webadmin of "whatever.io" is probably too cool to consider "www.whatever.io" as a viable web address for a startup company.
Re:Heroku encourages use of www. prefix for domains after DDoS by tybris on Monday May 23, 2011 @08:46AM (#2575748)
Re:Heroku encourages use of www. prefix for domains after DDoS by ab9 on Monday May 23, 2011 @06:17AM (#2575489)
NearlyFreeSpeech.NET, a popular web host, has recommended this for years.

http://faq.nearlyfreespeech.net/section/domainnameservice/ba...

Re:Heroku encourages use of www. prefix for domains after DDoS by jwr on Monday May 23, 2011 @07:01AM (#2575561)
What is the difference between an A record for a domain with a short TTL and a www CNAME with a short TTL?

In other words, doesn't a short TTL get you essentially the same thing?

Re:Heroku encourages use of www. prefix for domains after DDoS by mseebach on Monday May 23, 2011 @07:49AM (#2575648)
A records are name-to-IP, CNAME are name-to-name. When you control everything, you're right, no big deal. But in this case, customers control the DNS and Heroku the servers. Using CNAME to point to an A record at Heroku allows them to decide what IP the traffic goes to. If you use an A record, Heroku is SOL if they need the traffic to go to a new IP.

Posterous has a similar problem last august. They urgently needed to change to a new IP, but all their clients were setup with A-records. Painful.

Re:Heroku encourages use of www. prefix for domains after DDoS by ez77 on Monday May 23, 2011 @09:30AM (#2575827)
...Heroku is SOL if they need...

Off topic, what's the meaning of SOL in this context?

Re:Heroku encourages use of www. prefix for domains after DDoS by Duff on Monday May 23, 2011 @09:33AM (#2575837)
"Shit Out of Luck"
Re:Heroku encourages use of www. prefix for domains after DDoS by mikey_p on Monday May 23, 2011 @03:55PM (#2577328)
In polite circles it can also be "Sorry, Out of Luck"
Re:Heroku encourages use of www. prefix for domains after DDoS by bmunro on Monday May 23, 2011 @10:14AM (#2575969)
'Square out of luck'?
Re:Heroku encourages use of www. prefix for domains after DDoS by telemachos on Monday May 23, 2011 @11:21AM (#2576204)
I'm pretty sure the parent is right that it's "shit out of luck". I knew it as a military thing, and the internet seems to agree[1].

[1] http://www.etymonline.com/index.php?term=S.O.L. (one random link)

Re:Heroku encourages use of www. prefix for domains after DDoS by jwr on Tuesday May 24, 2011 @12:46AM (#2578708)
Ok. So I'm correct in thinking that for my own domains that I manage it boils down to the same thing, e.g. there is no reason to prefer www CNAMEs over domain A records.

Just wanted to check if I'm missing something.

Re:Heroku encourages use of www. prefix for domains after DDoS by mjs on Monday May 23, 2011 @07:45AM (#2575639)
Good question. Is there an AWS limitation in there somewhere?
Re:Heroku encourages use of www. prefix for domains after DDoS by SpikeGronim on Monday May 23, 2011 @11:46AM (#2576309)
Re:Heroku encourages use of www. prefix for domains after DDoS by biot on Monday May 23, 2011 @05:18AM (#2575412)
Might this be an argument for a new DNS record which acts like CNAME but doesn't have the restriction there be no other records for the same host? Something that functions like an A record but tells the querying software that it should use the IP address from the A record of the returned hostname. An "ALOOKUP" record if you will.
Re:Heroku encourages use of www. prefix for domains after DDoS by btilly on Monday May 23, 2011 @01:14PM (#2576669)
It has frustrated me for years that DNS recognized that mail might like to have multiple hosts that can respond to a domain, but failed to recognize that there might someday be other protocols that would like the same.
Re:Heroku encourages use of www. prefix for domains after DDoS by lmz on Monday May 23, 2011 @08:33PM (#2578180)
Isn't that what SRV is for? It even has priorities. Not that web browsers use it to locate web servers, of course...
Re:Heroku encourages use of www. prefix for domains after DDoS by mikey_p on Monday May 23, 2011 @04:01PM (#2577354)
This is pretty much par for the course with 90% of the 'cloud' offerings out there. This is also true with various hosted application platforms where you can add a custom domain for your blog or whatever.

There's just no way to ever rely on a single IP and guarantee that it will be stable for consumers, without failover. Even your ISP gives you two nameservers for that reason.

Re:Heroku encourages use of www. prefix for domains after DDoS by rlpb on Monday May 23, 2011 @06:51AM (#2575534)
SRV would fix this, but support is still lacking in Firefox in an eleven year old bug: https://bugzilla.mozilla.org/show_bug.cgi?id=14328

As far as I am aware, no other browser supports it either.

Re:Heroku encourages use of www. prefix for domains after DDoS by pimeys on Monday May 23, 2011 @05:41AM (#2575443)
Amazon's Elastic Load Balancer supports only CNAMEs, so a redirect to www subdomain is the only option for us to use the load balancer, and I think the situation won't get any better...
Re:Heroku encourages use of www. prefix for domains after DDoS by WALoeIII on Monday May 23, 2011 @01:20PM (#2576689)
The limitation of the root can (and will, I predict) be overcome by combining host and dns provider APIs. If Heroku had a way to push A record changes up to applications using their infrastructure they would be able to deal with this sort of issue.

This is also the promise of Amazon's Route 53 combined with their Elastic Load Balancing service which I hope will be released soon. Your DNS could dynamically serve A record IPs for the ELB, and you save the client the 2nd DNS resolution for the CNAME, faster and more dynamic.

For more: https://forums.aws.amazon.com/thread.jspa?threadID=63893&...

Re:Heroku encourages use of www. prefix for domains after DDoS by athst on Monday May 23, 2011 @05:28AM (#2575421)
They should update their dev center docs with this! I just followed their own instructions to set up DNS, which are to put in the IP addresses rather than the proxy. Kinda funny this came up right after I did it.
Re:Heroku encourages use of www. prefix for domains after DDoS by athst on Monday May 23, 2011 @05:33AM (#2575430)
nvm, I misread - they're only talking about subdomains and not the primary domain
Re:Heroku encourages use of www. prefix for domains after DDoS by norova on Monday May 23, 2011 @11:17AM (#2576179)
For what it's worth, CloudFlare (http://www.cloudflare.com) allows the use of CNAMES for the root domain.
Re:Heroku encourages use of www. prefix for domains after DDoS by SwellJoe on Monday May 23, 2011 @11:44AM (#2576303)
That would be a violation of the DNS specification, and won't work with DNS servers that are compliant to the specification (i.e. BIND). Section 2.4 of 1912:

2.4 CNAME records

   A CNAME record is not allowed to coexist with any other data.  In
   other words, if suzy.podunk.xx is an alias for sue.podunk.xx, you
   can't also have an MX record for suzy.podunk.edu, or an A record, or
   even a TXT record.  Especially do not try to combine CNAMEs and NS
   records like this!:


           podunk.xx.      IN      NS      ns1
                           IN      NS      ns2
                           IN      CNAME   mary
           mary            IN      A       1.2.3.4


   This is often attempted by inexperienced administrators as an obvious
   way to allow your domain name to also be a host.  However, DNS
   servers like BIND will see the CNAME and refuse to add any other
   resources for that name.  Since no other records are allowed to
   coexist with a CNAME, the NS entries are ignored.  Therefore all the
   hosts in the podunk.xx domain are ignored as well!
Re:Heroku encourages use of www. prefix for domains after DDoS by cagenut on Monday May 23, 2011 @08:50AM (#2575759)
Seriously a SYN flood? How 90's.

Side affect of running on AWS, you can't use a "real" firewall.

Even then don't they use ha-proxy up front? I'm surprised this was an issue.

Re:Heroku encourages use of www. prefix for domains after DDoS by jemfinch on Monday May 23, 2011 @09:15AM (#2575798)
HA Proxy isn't going to protect their pipe from congestion. Null routing the ip that's getting flooded will.
Re:Heroku encourages use of www. prefix for domains after DDoS by kordless on Monday May 23, 2011 @10:57AM (#2576119)
Until someone builds an attack suite that re-resolves the names in the middle of the attack.
Re:Heroku encourages use of www. prefix for domains after DDoS by Joakal on Monday May 23, 2011 @05:34AM (#2575433)
What's the point in a random DDoS against Heroku?
Re:Heroku encourages use of www. prefix for domains after DDoS by delinka on Monday May 23, 2011 @05:51AM (#2575457)
I often get questions like this from non-tech folk. "Why would someone hack my computer? Why would they attack my little web site?"

And often it's simply "because they can."

Re:Heroku encourages use of www. prefix for domains after DDoS by JakeSc on Monday May 23, 2011 @01:04PM (#2576635)
Increasingly, however, the answer has had more to do with economics, rather than bragging rights.
Re:Heroku encourages use of www. prefix for domains after DDoS by nikcub on Monday May 23, 2011 @07:09AM (#2575573)
more than likely a DDoS against a site they are hosting. The attackers probably don't know and don't care who Heroku are
Re:Heroku encourages use of www. prefix for domains after DDoS by jacques_chester on Monday May 23, 2011 @06:27PM (#2577841)
It might be the prelude to an extortion attempt.
Re:Heroku encourages use of www. prefix for domains after DDoS by franze on Monday May 23, 2011 @06:26AM (#2575509)
i want to bring up another - unrelated - point for "why a www subdomain is a good idea". the answer is: stupid CMS. forums, comment sections, press release distribution services, ... sometimes have issues to correctly transform non-www domain names into clickable links.
Re:Heroku encourages use of www. prefix for domains after DDoS by danneu on Monday May 23, 2011 @07:43PM (#2578055)
aren't most cases triggered by "http:// rather than "www"?
Re:Heroku encourages use of www. prefix for domains after DDoS by smountcastle on Monday May 23, 2011 @10:27AM (#2576006)
I wonder if Heroku could benefit from some DDoS protection such as this: http://verisigninc.com/en_US/products-and-services/network-i...