jech / polipo

The Polipo caching HTTP proxy
http://www.pps.jussieu.fr/~jch/software/polipo/
MIT License
1.8k stars 354 forks source link

"504 lookup failed: host not found" when i do searches in the address bar #44

Closed Giova84 closed 9 years ago

Giova84 commented 9 years ago

Hi, I successfully use Polipo on Haiku (the OS). Polipo works very well for me, except for one thing. In my Browser (Qupzilla) I do Google searches (Google is set as my default search engine) simply typing keywords in the address bar (as we can do in every browser). Eg: if in the address bar I type "foo" will be opened a search result on Google using "foo" as keyword.

Well, if I use Polipo as http proxy, when I type any keyword in the address bar, which consists in any single word (eg "foo") I just get: "504 Host foo lookup failed: Host not found" and I can see that Polipo try to translate the word "foo" as http address (in fact in the address bar i can see "http://foo/"), but if as keyword I use two words (eg "foo foo") I can properly see the default behaviour of the browser. In the polipo.conf I've tried to set the entry "dns Gethostbyname =" as "yes" "false" "reluctant" and "happily", but the result is always the same.

There is some workaround? I miss something? My resolv.conf file is properly set.

jech commented 9 years ago

The behaviour of calling Google is implemented by the browser, not by Polipo — so it's something that's going on in the browser.