Skip to content

Instantly share code, notes, and snippets.

@tedslittlerobot
Created February 28, 2019 09:15
Show Gist options
  • Save tedslittlerobot/6b0fb0b2b97e94f18fc9a9ea9b9d723c to your computer and use it in GitHub Desktop.
Save tedslittlerobot/6b0fb0b2b97e94f18fc9a9ea9b9d723c to your computer and use it in GitHub Desktop.
DnsMasq Config
nameserver 127.0.0.1
### APPEND ###
conf-file=/usr/local/opt/dnsmasq/test.conf

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment