Is there a way to setup CNAMEs without using an actual nameserver? This is for testing purposes on EC2 so any (hacky?) way of doing it would be good.
Or, if there's a light DNS server that's easy to configure, that'd be good as well.
I'm running Ubuntu 11.04 on EC2
Do they need to be actual CNAME DNS entries ? If you just want test host names to resolve to your local machine you can just entries to the /etc/hosts file e.g.
where 1.2.3.4 is your local machines IP address.
Edit:
Why not just buy a cheap domain name to use for testing and use the tools provided by the company you bought it from to point to your ELB ?
I don't think there is a way to do this without using some sort of NameServer. If you look at this question & answer Alnitak suggests using unbound to do the name serving.
I think you will need a dynamic dns solution. Try something like DynDNS or FreeDNS.
FreeDNS is more free. What I mean is, you get more features with the free product than with DynDNS. I've used both services, and they both work fine.
If you're not familiar with these types of services, this is how they work:
I think you can piggy-back on someone else's domain if you like. I bought my own and got it configured in an hour or so using this guide.