- Install dnsmasq:
brew install dnsmasq
cd $(brew --prefix); mkdir etc; echo 'address=/.test/127.0.0.1' > etc/dnsmasq.conf
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo mkdir /etc/resolver
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/test'
Last active
February 20, 2019 12:19
-
-
Save mauricerenck/e803158122b9d1730a34a2280f1a6bd0 to your computer and use it in GitHub Desktop.
make .test domains available without /etc/hosts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment