Simple DNSMasq Config Setup to point all *.test domains to 127.0.0.1. Taken from Valet+ for more general use with docker.
brew install dnsmasq
Go through config files in this gist. -- in filenames should be replaced with /.
sudo brew services stop dnsmasq
sudo brew services start dnsmasq