Open GoogleCodeExporter opened 9 years ago
Well, that is an interesting question. Ideally I'd like to not do dns look-ups
at all but just listen to outgoing socket connections. afaict that is not
possible in firefox?
Original comment by jan.ditt...@gmail.com
on 25 May 2011 at 4:29
I think ShowIP need not to listen to socket connections.
Firefox surely maintains a local DNS cache (or simlified lookup table?),
combining results from the hosts file, from local ISP's DNS resolver, or from
remote DNS, right?
I think maybe ShowIP should just query this (Firefox) local cache, and not
query other resources at all (unless explicitly specified by the user, but
that's different).
What do you think?
Original comment by socks.n....@gmail.com
on 25 May 2011 at 5:46
Can you point me to source inside Firefox where you think such a cache would
live? Last time I checked (more than a year back), no such thing existed. I
wouldn't even be sure, that Firefox reads /etc/hosts directly. IP addresses may
also change between different requests for the same resource due to DNS
round-robin. I'll look into it again one of these days...
Original comment by jan.ditt...@gmail.com
on 25 May 2011 at 6:07
Maybe...
http://mxr.mozilla.org/mozilla2.0/source/netwerk/dns/nsDNSService2.cpp#331
http://mxr.mozilla.org/mozilla2.0/source/netwerk/dns/nsHostResolver.cpp
should be of some help, but I don't really understand the source xD.
Also I found somebody claiming:
> If you're using a SOCKS proxy with remote DNS enabled then this isn't
possible, as no DNS lookups will be in your cache.
source: http://flagfox.servehttp.com/forum/viewtopic.php?f=3&t=20
That came as a surprise to me. Don't know if this is true / has changed.
Original comment by socks.n....@gmail.com
on 25 May 2011 at 8:54
I wasn't aware that using a PAC file triggers different behavior than manual
proxy configuration [1]. So apart from ``network.proxy.socks_remote_dns`` set
to true, I also created the perf ``network.dns.disablePrefetch`` to bypass
local DNS queries for sites accessed through SOCKS proxy. With ShowIP disabled,
the unwanted local DNS queries are not performed, while with ShowIP enabled,
they are. So ShowIP is "leaking my privacy" ;)
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=488162#c9
Original comment by socks.n....@gmail.com
on 25 May 2011 at 5:43
There is actually code in the plugin to detect the proxy setup. I don't
remember from the top of my head, but try looking in the plugins settings
dialog.
Original comment by jan.ditt...@gmail.com
on 11 Jun 2011 at 10:07
Original issue reported on code.google.com by
socks.n....@gmail.com
on 25 May 2011 at 4:12