I am switching between multiple projects recently. All running locally on the same IP but with different domains... actually it's always *.local
(like foo.local
, bar.local
and so on). I could continue adding those to my /etc/hosts
file but it's not very clean way.
That's why I thought of setting up dnsmasq.conf
so I've ran (obviously as root):
echo "address=/local/172.17.0.1" >> /etc/dnsmasq.conf
service dnsmasq restart
Unfortunately it doesn't work. I mean when I run foo.local
(exists in /etc/hosts
) it's ok but foo2.local
(not in hosts) it doesn't. What do I miss?