darkmist icon

brew_dnsmasq.sh

darkmist | PRO | 12/31/16 05:45:15 PM UTC | 0 ⭐ | 193 👁️ | Never ⏰ | []
Bash |

480 B

|

None

|

0 👍

/

0 👎

# Install `dnsmasq` and configure for *.dev domains
 
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
 
# Reload configuration and clear cache
 
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache
 
# Setup DNS resolving
 
$ sudo mkdir -p /etc/resolver
$ sudo tee /etc/resolver/dev > /dev/null <<EOF
nameserver 127.0.0.1
domain dev
search_order 1
EOF

Comments