On EC2, things are a little different from your standard hosting setup. Here�s how you get dynamic DNS working on EC2.
Coding Library: Ruby

More Amazon EC2 Resources: