2
No0b here. I have been trying to setup a local environment for web development on OS X Yosemite using these approaches (http://passingcuriosity.com/2013/dnsmasq-dev-osx/ and http://mallinson.ca/osx-web-development/)
The culprit here is dnsmasq. It is supposed to automatically update /etc/hosts with folder-name.dev everytime I create new sites. It works well only when connected to the internet. When I'm offline, Google Chrome returns Unable to connect to the internet
everytime I tried to access any .dev that wasn't registered in /etc/hosts.
I have checked the status of dnsmasq using LaunchRocket and it's stated as running. Also, running $ dig folder-name.dev @127.0.0.1
returns no error.
However, $ ping folder-name.dev
returns ping: cannot resolve folder-name.dev: Unknown host
. And when I run $ scutil --dns
while offline, all I get is No DNS configuration available
Any idea how to get dnsmasq to run properly even without internet connection?
FYI, I am running clean install OS X 10.10 Yosemite on MacBook Pro 15" Late 2008.
Related: Set DNS server on OS X even when without internet connection on Server Fault (without a solution for Yosemite today).
– Arjan – 2015-04-06T13:34:58.983