Skip to content

Instantly share code, notes, and snippets.

@mindesik
Last active May 21, 2016 18:21
Show Gist options
  • Save mindesik/61176a757826509fc5d39c12bca93d89 to your computer and use it in GitHub Desktop.
Save mindesik/61176a757826509fc5d39c12bca93d89 to your computer and use it in GitHub Desktop.
brew install dnsmasq
mkdir -pv $(brew --prefix)/etc/
echo 'address=/.dev/192.168.10.10' > $(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