Last active
March 22, 2017 20:18
-
-
Save maxclaus/10d76576525d012988ef5a7b81498b92 to your computer and use it in GitHub Desktop.
DNSMASQ on OSX - https://echo.co/blog/never-touch-your-local-etchosts-file-os-x-again https://passingcuriosity.com/2013/dnsmasq-dev-osx/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install dnsmasq | |
mkdir -pv $(brew --prefix)/etc/ | |
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/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 -v /etc/resolver | |
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment