This little gist help you to catch all *.devel domain and open localhost for it.
First you need to set up local DNS server and add it to resolv conf.
sudo apt-get install bind9 dnsutils resolvconf
bind9
- DNS server
resolvconf
- help you to manage you /etc/resolv.conf
file automatically independs on network configuration