-
Notifications
You must be signed in to change notification settings - Fork 0
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
will this work in linux #2
Comments
@fringd, great question! i suspect not, at this time. at its core, if you try it out, please do let me know how things go. note that the installation & execution is a bit picky at the moment. be sure you are using "system" ruby (e.g., if using rvm first run @ioquatix, any thoughts? |
okay i can't really tell if it is working, there isn't actually any usage, which makes it hard to test :) that said, i think the thing to do in linux is edit /etc/nsswitch.conf which is what the hoof gem is trying to do... so i'm guessing it doesn't work with linux now... |
@fringd right... regarding the "how": for example, i use i've added an issue to update the docs with usage. will also take a look at linux usage when i can. thanks for asking! |
Most operating systems provide methods to register DNS resolvers. On linux its /dev/resolv.conf - and you'd need super user privileges to edit it. $ cat resolv.conf You can simply add "nameserver 127.0.0.1" to that file and you will get a similar behaviour. |
@ioquatix great, thanks! |
ubuntu already has dnsmasq running at 127.0.0.1, so that's problematic, there is some voodoo to do with /etc/resolver, but it seemed too dense for my simple and stupid needs... in the end i just edited /etc/hosts with 127.0.0.1 myapp.dev myotherapp.dev etc /etc/pound/pound.cfg
if this gem ever functions as a simple http proxy and can wrangle the voodoo with /etc/resolvconf/resolv.conf.d/tail on ubuntu, it would be awesome... manually adding to /etc/hosts and pound.cfg as I add more apps is not the best |
if so how? pow.cx only works for mac, and there's something called 'hoof' that does not work for me :/
The text was updated successfully, but these errors were encountered: