-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X DNS resolver w/o internet connection. #113
Comments
Can add/remove a host to/from OS-dependent hosts file. Relates to #113
In the commit referenced above I have added a |
Hosts command improved so that without parameters Now people writing if is_windows; then
cd "$PROJECT_ROOT"
fin hosts add
fi Or if you go offline on macOS you can just od This command is the best I can do for using Docksal offline. As I don't want to force user to change his hosts file by default. |
For scripting purposes. On macOS checking if user is offline can be done like this: if ping -c 1 google.com >> /dev/null 2>&1; then
echo "online"
else
echo "offline"
fi |
I see this issue was resolved but I'm having some reading comprehension issues with the post. I don't understand the solution. Is there a guide on how I get docksal running on a Mac that's offline? |
Use |
OS X has a bag or feature, when DNS resolver wont work without internet connection. In case of loosing Wi-Fi or LAN, local environment (for example "test.docksal") becomes unavailable.
Problem can be solved in case of manual updating "/etc/hosts" file (e.g. "192.168.64.100 test.docksal"), same way as MAMP stack doing.
As variant separate "init" command for OS X should be implemented or existing "init" script updated, with adding OS validation and updating "hosts" file.
The text was updated successfully, but these errors were encountered: