dnsmasq 的安装配置

安装

brew install dnsmasq

创建配置目录

mkdir -pv $(brew --prefix)/etc/

配置 *.test 到本地

echo 'address=/.test/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf

开机自启

brew services start dnsmasq