osx小牛:dnsmasq停止工作 [英] osx Mavericks: dnsmasq stops working

查看:153
本文介绍了osx小牛:dnsmasq停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在通过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:

  1. mkdir -pv $(brew --prefix)/etc/
  2. 回显'address =/ .dev /127.0.0.1'> $(brew --prefix)/etc/dnsmasq.conf
  3. sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist/Library/LaunchDaemons
  4. sudo launchctl load -w/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
  5. sudo mkdir -v/etc/resolver
  6. sudo bash -c'echo名称服务器127.0.0.1">/etc/resolver/ dev '
  1. mkdir -pv $(brew --prefix)/etc/
  2. echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf
  3. sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
  4. sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
  5. sudo mkdir -v /etc/resolver
  6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆