Capistrano doesn't seem to handle the situation where different names point to the same host. For example, given the following settings in config/deploy.rb:
role :web, "machine1.test.host"
role :app, "machine1.test.host"
role :db, "db.test.host", :primary => true
And DNS records indicating that db.test.host is a CNAME for machine1.test.host, capistrano tries to do parallel deployments to both machines, and since they are actually the same machine, this fails. Using DNS to determine which machine is currently serving e.g. the database is useful outside of capistrano, so it would be great if settings such as these would work with capistrano, in this case, doing only a single deployment to machine1.test.host.