Skip to content

Instantly share code, notes, and snippets.

@eaton
Created October 31, 2013 19:12
Show Gist options
  • Save eaton/7255146 to your computer and use it in GitHub Desktop.
Save eaton/7255146 to your computer and use it in GitHub Desktop.
dnsmasq setup for local craziness
brew install dnsmasq
mkdir /usr/local/etc
touch /usr/local/etc/dnsmasq.conf
echo "address=/dev/127.0.0.1\n" >> /usr/local/etc/dnsmasq.conf
echo "address=/vm/10.0.0.10\n" >> /usr/local/etc/dnsmasq.conf
sudo cp -fv /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
mkdir /etc/resolver
touch /etc/resolver/vm
touch /etc/resolver/dev
echo nameserver 127.0.0.1\n >> /etc/resolver/vm
echo nameserver 127.0.0.1\n >> /etc/resolver/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment