So you might have set up dnsmasq with this tutorial but then you notice that you can't set cookies to subdomains of localhost or for all of localhost's subdomains (see why).
So we set up a custom "localhost", that I'll call local.host
, but you can pick whatever you want, as long as it contains
at least one dot. Just adapt the first two commands.
$ # add to hosts list
$ sudo echo "127.0.0.1 local.host" >> /private/etc/hosts
$ # tell your dns server about it