pyromaniac / hoof

Linux zero-configuration server
MIT License
170 stars 8 forks source link

anyone success? #8

Open wxianfeng opened 13 years ago

wxianfeng commented 13 years ago

i config it step by step , but failed!!!

open browser , and cant resolve app.dev, anyone success?

pyromaniac commented 13 years ago

Hello.

  1. How is your nsswitch.conf looks like now?
  2. Does /lib/libnss_hoof.so.2 exists?
  3. According to this https://github.com/pyromaniac/hoof/blob/master/lib/hoof/cli.rb#L49 there should be some routes in your sudo iptables -t nat -L So take a look there please.
wxianfeng commented 13 years ago

@pyromaniac 1 passwd: compat group: compat shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 hoof networks: files

protocols: db files services: db files ethers: db files rpc: db files

netgroup: nis

2 exist

3,

no that lines in iptables

why? i have exec hoof install

adamcrown commented 13 years ago

For anybody else that might be having problems I discovered that if you have an overly "helpful" DNS server that resolves bad DNS names to a search page (like OpenDNS does) then the DNS lookup will never get past the DNS stage in order to try hoof. You can move hoof to the left of dns in your nsswitch.conf file but that broke my VPN abilities for some reason.

So for me the best solution was to just switch from OpenDNS to Google's public DNS which returns an actual NXDOMAIN result like it should.

pyromaniac commented 13 years ago

@wxianfeng iptable records drops after system restart. So, man iptables of hoof install again.

@adamcrown hoof nsswitch extension is a little bit bugged ) i do not recommend to move at the start of line. There are many applications that will be broken.

Hoof is a proof of concept, so it needs additional researches and bug reports.

thecatwasnot commented 13 years ago

I'm having the same problem with dns I think, I have fixed nsswitch.conf, I do have a /lib/libnss_hoof.so.2 and I re-ran hoof install to get iptables set up and still no joy. Running Ubuntu 11.10. Would love to have this working, please let me know what else I can do.