osx小牛:dnsmasq停止工作 [英] osx Mavericks: dnsmasq stops working
问题描述
我一直在通过Mac端口安装的Mac OS X美洲狮上使用dnsmasq.最近,我升级到Osx Mavericks,突然间它停止了工作.
I have been using dnsmasq on mac osx mountain lion which was installed via mac ports. Recently,I upgraded to Osx Mavericks and all of a sudden it has stopped working.
我检查了/opt/local/etc/中的dnsmasq.conf和resolv.conf,它们没有变化.此外,dnsmasq进程在os活动监视器中显示为正在运行.我也尝试过强制退出dnsmasq进程.
I examined the dnsmasq.conf and resolv.conf in /opt/local/etc/ which are unchanged. In addition the dnsmasq process is displayed running in the os activity monitor. I tried a force quit of the dnsmasq process as well.
有什么建议吗?有没有人遇到过类似的问题?
Any suggestions? Has anyone experienced a similar problem?
推荐答案
通过以下操作解决了我的问题:
Solved mine by doing the following:
- mkdir -pv $(brew --prefix)/etc/
- 回显'address =/ .dev /127.0.0.1'> $(brew --prefix)/etc/dnsmasq.conf
- sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist/Library/LaunchDaemons
- sudo launchctl load -w/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
- sudo mkdir -v/etc/resolver
- sudo bash -c'echo名称服务器127.0.0.1">/etc/resolver/ dev '
- mkdir -pv $(brew --prefix)/etc/
- echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf
- sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
- sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
- sudo mkdir -v /etc/resolver
- sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'
如果您的开发域不是 .dev ,则将加粗的部分更改为您的域.如果需要其他域,则只需重复步骤2和6.
If your development domains are not .dev, then change the bolded parts to your domain. If you need other domains, you need to only repeat steps 2 and 6.
来源:艾伦·艾维(Alan Ivey)的精彩博客文章.
这篇关于osx小牛:dnsmasq停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!