Last active
September 30, 2016 11:02
-
-
Save julrich/dd43ebd2ee7b9995bc378bd6d3ac51b9 to your computer and use it in GitHub Desktop.
DNS Configuration for .local Domain on OSX El Capitan
This file contains hidden or 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 -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