-
Notifications
You must be signed in to change notification settings - Fork 258
Can't access hosts offline #104
Comments
+1 |
I noticed this also. |
It seems like the configuration in |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Thanks for the support, guys, but I'm afraid any number of +1s isn't going to help fix this. It's an issue with OS X's resolver system. |
workaround: Enable your Ad-Hoc Wifi Network. |
Great find. @fd, could you add your workaround to the Troubleshooting wiki page? |
sure. |
I am still trying to use Pow while offline. See here. I've tried the suggested fix of enabling the Ad-Hoc Network per the instructions on Apple linked to from the Troubleshooting section, but still no luck. Anything else I could be missing? |
+1 |
I'm facing the same issue with Mac OS X Lion. |
+1, before it worked to me, but just updated to Lion and now it doesn't work offline |
+1, doesn't work in Lion (offline) unless I update /etc/hosts to include 127.0.0.1 myapp.dev. Does anyone know of any issues that can happen by running pow this way? I run all my projects in a specific directory: (not sure how many people do this) /path/WebDevelopment/Project1 I am able to run multiple sites at the same time as long as they are in /etc/hosts... Can't pow just run a little utility that checks an environment variable which is my WebDevelopment path, gets the directories in this path, checks them against /etc/hosts, and adds them to /etc/hosts if needed. You could also get the links in the .pow directory auto updated this way as well. |
So is the workaround in Lion now to add each .dev address to hosts? If so, what would happen if Pow just used hosts instead of resolver? |
I wrote a little piece of code today that solves the problem if you are using powder together with pow that is. The pull request can be found at powder-rb/powder#41 |
The workaround of enabling the ad hoc wifi isn't a workaround when you are on a flight that prohibits wifi use. Hopefully the hosts option works. Powder adds extra dependancies that will clutter the bundle file for those who don't use it. |
Hello, I was browsing the configd source trying to debug another problem, when http://serverfault.com/a/164215/3731 (See UPDATE section) Essentially, if you specify the special root domain '.' as the domain
It works on my machine, anyway. I thought I'd let you guys know here |
Been a few months. Wanted to see if there were any new workarounds or break throughs? |
For what it's worth: guns's suggestion to add |
OK, I'm actually a dumbass. Adding the "domain ." line actually sometimes seems to break regular DNS for me. So disregard my overly-hasty suggestion. |
I have since moved on to Linux as my desktop OS since I wrote that http://www.opensource.apple.com/source/configd/ The solutions posted worked for me for 10.6 and 10.7 and allowed me to |
I had this problem too. I went with |
+1 to also, using |
This is based on @xta and @chrisberkhout's answers: $ cat /etc/hosts
The powder gem can take care of that by using the following command:
This fixed the problem for me. |
When offline I'm not able to access any Pow hosts through the browser.
I can ping them, or access them with lynx, but all the desktop browsers I've tried (FF, Chrome, Safari) are unable to resolve the host. I can only access them offline by manually adding them to
/etc/hosts
.I guess this is down to DNS caching by the browser / OS, and is not really a Pow issue, but maybe someone can explain what's going on?
The text was updated successfully, but these errors were encountered: