osx Mavericks: dnsmasq stops working

后端 未结 3 1058
抹茶落季
抹茶落季 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: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.

提交回复
热议问题