dnsmasq using Homebrew. Edit the
dnsmasq.conf file (Homebrew will tell you where to put it) to contain:
Then make sure Dnsmasq is running (again follow Homebrew instructions).
/etc/resolver/dev directory (using
root) if it doesn't exist yet and create a resolver for
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'
ping foo.dev and it should be pinging
dig foo.dev does not consult Dnsmasq, so test with