Skip to content

Instantly share code, notes, and snippets.

@julrich
Last active September 30, 2016 11:02
Show Gist options
  • Save julrich/dd43ebd2ee7b9995bc378bd6d3ac51b9 to your computer and use it in GitHub Desktop.
Save julrich/dd43ebd2ee7b9995bc378bd6d3ac51b9 to your computer and use it in GitHub Desktop.
DNS Configuration for .local Domain on OSX El Capitan
brew install dnsmasq
mkdir -p /usr/shared/etc/
echo "address=/shared/127.0.0.1" >> /usr/local/etc/dnsmasq.conf
echo "listen-address=127.0.0.1" >> /usr/local/etc/dnsmasq.conf
sudo cp "/usr/local/Cellar/dnsmasq/*/homebrew.mxcl.dnsmasq.plist" "/Library/LaunchDaemons"
sudo launchctl load -w "/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist"
sudo -s
sudo mkdir -p /etc/resolver
sudo echo 'nameserver 127.0.0.1' > /etc/resolver/local
dscacheutil -flushcache
scutil --dns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment