If you're as lazy as I am for your cloud based pet projects, use this simple ansible play to setup a DNS-ready infrastructure :)
- lineinfile: dest=/etc/hosts regexp=".*{{ item }}.*" line="{{ hostvars[item].ansible_default_ipv4.address }} {{ item }}" state=present
sudo: yes
with_items: hostvars | list