Last active
August 29, 2015 14:23
-
-
Save moofish32/cc9c83b3d890248d5180 to your computer and use it in GitHub Desktop.
DNSMASQ Setup
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
#!/usr/env/bin sh | |
brew install dnsmasq; | |
cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf; | |
sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons; | |
sudo chown root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist; | |
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist; | |
sed -i.bak '/#address=\/double-click\.net\/127\.0\.0\.1/a\ | |
address=/bspot.dev/'$(boot2docker ip) /usr/local/etc/dnsmasq.conf; | |
sudo launchctl stop homebrew.mxcl.dnsmasq; | |
sudo launchctl start homebrew.mxcl.dnsmasq; | |
sudo mkdir -p /etc/resolver/; | |
sudo tee /etc/resolver/bspot.dev >/dev/null <<EOF | |
nameserver 127.0.0.1 | |
EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fixed bang command: https://gist.github.com/metafour/52f9650497b948075752