osx Mavericks: dnsmasq stops working

瘦欲@ 提交于 2019-12-03 07:25:02
Artem Gordinsky

Solved mine by doing the following:

  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'

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.


Source: This brilliant blog post by Alan Ivey.

David

The reason for why dnsmasq local-only domain not works any more on maverick is because BIND is no longer installed - even when the command line developer tools are added.

Here is link for detailed explanations.

I had issue with DNS after upgrade, in which is just wouldn't start from UI. Not using DNSMASQ myself, though you could look at this to see if is connected to your problem.

https://discussions.apple.com/message/23469825#23469825

Edit (as root) plist at /var/db/launchd.db/com.apple.launchd/overrides.plist

Look for <key>org.isc.named</key>

Set value of <key>Disabled</key> to <false/>.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!