News for hackers. Stuff that matters.
Re:Why ALIAS-type DNS Records Break The Internet by shawabawa3 on Wednesday January 08, 2014 @06:30AM (#7022882)
I don't see how the caching thing is a problem specific to alias records. If you were using an A record instead, you would have to manually update the IP address, and then it would still be cached for however long.

The geoIP thing is pretty minor, ideally you should be able to tell the dns server the IP you are proxying for.

Who cares that there's no standard? Complete non-issue.

Even if I agreed that alias records were bad, whats the alternative? Manually updating A-records?

Re:Why ALIAS-type DNS Records Break The Internet by JoachimSchipper on Wednesday January 08, 2014 @06:38AM (#7022899)
If I point foo.mydomain at bar.otherdomain with a CNAME, otherdomain can transition to a new IP without doing anything more than is required to make bar.otherdomain work.

If I point foo.mydomain at whatever bar.otherdomain's IP is (i.e. use an A record), otherdomain breaks my stuff whenever they change IP addresses, and there's not a lot they can do about that. Automating this (via the ALIAS mechanism mentioned in this article) just means that the breakage eventually goes away.

The correct solution, as pointed out, is to use CNAME - which requires that you use a subdomain.

Re:Why ALIAS-type DNS Records Break The Internet by vidarh on Wednesday January 08, 2014 @07:22AM (#7023031)
The problem you cite is only a problem if the operators of otherdomain are either not aware of what you're doing, or otherwise don't want to support it, or are unable to handle a transition. If they are aware, it's generally a non-issue: They can ensure the site works on both addresses for a transition period.
Re:Why ALIAS-type DNS Records Break The Internet by donavanm on Wednesday January 08, 2014 @06:46AM (#7022927)
Can you illustrate this with an example? How about explicit records and a 60 second ttl on A and CNAME to humor me.

If implementing recursion based ALIAS foo.mydomain RRs MUST respect the TTL of bar.otherdomains RRs. With that proviso Im missing what the effective cache lifetime difference is between the two.

Re:Why ALIAS-type DNS Records Break The Internet by JoachimSchipper on Wednesday January 08, 2014 @07:26AM (#7023052)
I agree that this would work decently well if you could actually specify a 60-second TTL; but there are quite a few DNS resolvers that cache responses for at least a day, and there's not a whole lot you can do to change that. (This makes some sense - re-resolving all the time doesn't help performance!)
Re:Why ALIAS-type DNS Records Break The Internet by imbriaco on Wednesday January 08, 2014 @12:17PM (#7024823)
"Quite a few" is actually a very very small percentage these days.

If your ISP is disregarding TTL, you're just as bad off with CNAMEs pointing at a third party as you are with the ALIAS-type record.

Re:Why ALIAS-type DNS Records Break The Internet by donavanm on Wednesday January 08, 2014 @02:22PM (#7025824)
Yeah, around 1% of resolvers seriously disregarding TTLs is what Ive seen. But if thats the argument theres absolutely no difference in cache lifetime of a single A backed by an ALIAS resolution and the typical A + CNAME. In either case all of the records should be cached for the broken resolvers lifetime. To counter that you do dns cache busting with prepended GUID labels or the like. Which totally breaks caching anyways.
Re:Why ALIAS-type DNS Records Break The Internet by belorn on Wednesday January 08, 2014 @09:17AM (#7023549)
> If implementing recursion based ALIAS foo.mydomain RRs MUST respect the TTL of bar.otherdomains RRs.

There is only two ways that I can think of. The nameserver could sets foo.mydomain TTL to be the reminder of bar.otherdomains current cached ttl, but it would mean that at some point it could go down as little as 1s long.

Or, the name server could make a new fresh resolving of bar.otherdomains, and forward that as the answer to foo.mydomain with bar.otherdomains TTL intact. However, that would make requests for foo.mydomain quite slow and severely increase the workload for the nameserver.

Given the problem of each of those solutions, its seems the common approach is to simply put a short TTL on foo.mydomain regardless of the TTL on bar.otherdomains, and then pray. Thus this article.

Re:Why ALIAS-type DNS Records Break The Internet by viraptor on Wednesday January 08, 2014 @08:21AM (#7023274)
What's the difference between the ip changing via ALIAS and ip changing via the next hop after CNAME? In both cases you'll be stuck with the old address until the record times out in your cache, so either the provider has to make sure the old address works correctly for the whole TTL period after the record change, or you're going to hit the old/dead host.
Re:Why ALIAS-type DNS Records Break The Internet by the_mitsuhiko on Wednesday January 08, 2014 @06:47AM (#7022930)
Using a subdomain? What's wrong with "www."? For the apex all you need then is a tiny server that issues a permanent redirect. Why are people so obsessed with getting rid of "www."? The lack of dot causes issues with cookies, makes SSL a lot harder and is currently badly supported by DNS.
Re:Why ALIAS-type DNS Records Break The Internet by norswap on Wednesday January 08, 2014 @06:59AM (#7022967)
> What's wrong with "www."?

People (rightly) expect the url to work without it. I say rightly, because it can, so it should. The www hads no value to the user.

Re:Why ALIAS-type DNS Records Break The Internet by JoachimSchipper on Wednesday January 08, 2014 @07:28AM (#7023063)
That's an extremely web-centric view of the world. There is more to DNS than its use in URLs. And doesn't redirecting to www. do the expected thing anyway?
Re:Why ALIAS-type DNS Records Break The Internet by Xylakant on Wednesday January 08, 2014 @07:36AM (#7023093)
To redirect to www.example.org I need a server listening at example.org. If I have www.example.org on heroku because I don't want to run a server, I suddenly need a server just for that redirect that I need to have because I don't want to run a server.
Re:Why ALIAS-type DNS Records Break The Internet by zimbatm on Wednesday January 08, 2014 @07:52AM (#7023149)
Or just use http://wwwizer.com/

EDIT: Or use DNSMadeEasy, they provide HTTP redirect options as part of their service (although I wish the default option would not be to wrap the target URL in an iframe...)

Re:Why ALIAS-type DNS Records Break The Internet by toomuchtodo on Wednesday January 08, 2014 @11:00AM (#7024261)
Or use an S3 bucket with a redirect.
Re:Why ALIAS-type DNS Records Break The Internet by JoachimSchipper on Wednesday January 08, 2014 @07:41AM (#7023115)
But there's already a non-Heroku server running for that domain, i.e. the one serving DNS requests. That server can be re-purposed to do HTTP-level redirects, too, and indeed many name server operators offer that feature.
Re:Why ALIAS-type DNS Records Break The Internet by norswap on Wednesday January 08, 2014 @08:40AM (#7023357)
It does, but then can you do that without using an ALIAS record, which is one of the reason invoked to use "www"?

Also, web-centric is fine, browsing the net is 99% of my URL manipulation, and I'm a developer that has to work with web APIs.

Re:Why ALIAS-type DNS Records Break The Internet by osteele on Wednesday January 08, 2014 @08:14AM (#7023242)
For a high-availability site, you need a cluster of redirect servers behind the same IP. For the reasons you name, it's generally still worth redirecting web traffic to www.*, but it's trivial only for a non-HA site.