[Bug 478805] New: resolution of localhost is different when nscd runs
https://bugzilla.novell.com/show_bug.cgi?id=478805 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=478805#c6 Summary: resolution of localhost is different when nscd runs Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: pbaudis@novell.com ReportedBy: poeml@novell.com QAContact: qa@suse.de Found By: --- Not sure whether with, what I see, to locate a but in glibc, aria2 or elsewhere. Anyway: When I run aria2c with http_proxy=http://localhost:3128/ in the environment, I get the following on Factory (as well as on openSUSE 11.0): 2009-02-15 01:04:38.856623 INFO - aria2 1.2.0b+20090210 powerpc-suse-linux-gnu 2009-02-15 01:04:38.856719 INFO - Logging started. 2009-02-15 01:04:38.860397 WARN - You may encounter the certificate verification error with HTTPS server. See --ca-certificate and --check-certificate option. 2009-02-15 01:04:38.864335 INFO - CUID#6 - Name resolution complete: localhost -> ::1 2009-02-15 01:04:38.864595 INFO - CUID#6 - Connecting to localhost:3128 2009-02-15 01:04:38.866232 INFO - CUID#6 - Restarting the download. URI=http://download.opensuse.org/update/11.1/repodata/repomd.xml Exception: Failed to establish connection, cause: Connection refused Squid is listening on IPv4 localhost only. The problem happens when nscd is not running. aria2c probably can't do anything about the fact that localhost resolves into the IPv6 loopback address. I am not sure if the glibc behaviour is correct, but it might be. Anyway, it looks suspicious that the name lookup returns ::1 when nscd is not running, but 127.0.0.1 when it runs. [If the behaviour is not fixable, I would have an idea for a possible workaround in libzypp (which uses aria2c by default now): if a proxy is set, and the URL contains "localhost", replace that by 127.0.0.1. (Not sure about the likelyhood about an IPv6-only proxy on localhost; you never know...) ] Petr, what do you think? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com