如下:
$ brew search dnsmasq
dnsmasq
xyz@sdf:~/weiwei/gitlab/teddy (release/0509)$ brew install dnsmasq
==> Downloading https://homebrew.bintray.com/bottles/dnsmasq-2.75.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring dnsmasq-2.75.el_capitan.bottle.tar.gz
==> Caveats
To configure dnsmasq, copy the example configuration to /usr/local/etc/dnsmasq.conf
and edit to taste.
cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
To have launchd start dnsmasq now and restart at startup:
sudo brew services start dnsmasq
==> Summary
🍺 /usr/local/Cellar/dnsmasq/2.75: 7 files, 492.3K