osx Mavericks: dnsmasq stops working

后端 未结 3 1057
抹茶落季
抹茶落季 2021-02-08 18:53

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.

I

相关标签:
3条回答
  • 2021-02-08 19:13

    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.

    0 讨论(0)
  • 2021-02-08 19:15

    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.

    0 讨论(0)
  • 2021-02-08 19:26

    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/>.

    0 讨论(0)
提交回复
热议问题