赞
踩
brew install dnsmasq
brew info dnsmasq
//每次配置完,重启服务
sudo brew services restart dnsmasq
log-queries
log-facility=/var/log/dnsmasq.log
bogus-nxdomain=119.29.29.29
cache-size=2048
port=53
no-resolv
123.123.123.123 www.xxx.com
PS: .zshrc中可以配置别名,快速查看本机ip地址
alias ip='curl ifconfig.me'
alias ip2='ifconfig | grep inet | grep -v inet6 | grep -v 127'
alias ip3='ifconfig | grep inet'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。