After upgrading to Yosemite, the local domain stops working after disconnecting from the network

I am using dnsmasq for my local development environment. When I am connected to the network, everything is fine, but then I disconnect the network form, the local domain does not work. (Safari or FireFox show me "You are not connected to the network"

Thank!

+4
source share
3 answers

There are a number of reasons why dnsmasq may not work for you after updating Yosemite. First, make sure that your local host (127.0.0.1) is set to the first position of your system settings> Network> Advanced for network devices for which you want dnsmasq to work. dnsmasq Network Settings

* . DNS- Google, IP- 8.8.x.x .

: https://blog.wwwjfy.net/2014/06/03/some-solutions-to-some-problems-in-yosemite-beta/

"kickstart" dnsmasq, :

sudo launchctl kickstart system/homebrew.mxcl.dnsmasq

, plist , .

/path/to/homebrew.mxcl.dnsmasq.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>homebrew.mxcl.dnsmasq</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/opt/dnsmasq/sbin/dnsmasq</string>
        <string>--keep-in-foreground</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

, .

+3

. , /etc/hosts, . , Apple discoveryd ,

+1

/etc/resolver/ .

0

All Articles