[Bug 618050] New: getaddrinfo() breaks when resolv.conf points at buggy nameservers
http://bugzilla.novell.com/show_bug.cgi?id=618050 http://bugzilla.novell.com/show_bug.cgi?id=618050#c0 Summary: getaddrinfo() breaks when resolv.conf points at buggy nameservers Classification: openSUSE Product: openSUSE 11.3 Version: RC 1 Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: martin.wilck@ts.fujitsu.com QAContact: qa@suse.de CC: glunardi@novell.com, jpallen@novell.com, lnussel@novell.com, aj@novell.com, behlert@novell.com, coolo@novell.com, kukuk@novell.com, vojtech@novell.com, abockover@novell.com, f.de.kruijf@gmail.com, kmachalkova@novell.com, workingwriter@gmail.com, uli.2001@gmx.de, dmueller@novell.com, pbaudis@novell.com, ken@turnkey.com.au, chris.beckett@nds8.co.uk, jkupec@novell.com, chusty@attglobal.net, roger@atchoo.org, mhutchinson@novell.com, gburt@novell.com, t.zell@gmx.de, aharrison@gmail.com Depends on: 441947 Found By: --- Blocker: --- +++ This bug was initially created as a clone of Bug #441947 +++ I am observing the 5 seconds timeout with every DNS request that has been reported for older OpenSUSE versions earlier (see e.g. bug #441947). The bug was supposed to be fixed but it seems to have reappeared with 11.3. # time dig +short www.google.de www.google.com. www.l.google.com. 74.125.77.99 74.125.77.104 74.125.77.147 real 0m0.452s user 0m0.000s sys 0m0.008s # time curl www.google.de >/dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8520 0 8520 0 0 1602 0 --:--:-- 0:00:05 --:--:-- 41359 real 0m5.324s user 0m0.008s sys 0m0.000s Here is an strace of curl showing the 5s timeout. 22:18:06.830849 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3 22:18:06.830883 connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) 22:18:06.832544 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3 22:18:06.832591 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 28) = 0 22:18:06.832656 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}]) 22:18:06.832704 send(3, "\351a\1\0\0\1\0\0\0\0\0\0\3www\6google\2de\0\0\1\0\1", 31, MSG_NOSIGNAL) = 31 22:18:06.832783 poll([{fd=3, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=3, revents=POLLOUT}]) 22:18:06.832823 send(3, "\247\304\1\0\0\1\0\0\0\0\0\0\3www\6google\2de\0\0\34\0\1", 31, MSG_NOSIGNAL) = 31 22:18:06.832884 poll([{fd=3, events=POLLIN}], 1, 4999) = 1 ([{fd=3, revents=POLLIN}]) 22:18:06.883920 recvfrom(3, "\351a\201\200\0\1\0\5\0\0\0\0\3www\6google\2de\0\0\1\0\1\300"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 127 22:18:06.884451 poll([{fd=3, events=POLLIN}], 1, 4948) = 0 (Timeout) 22:18:11.834354 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}]) 22:18:11.834480 send(3, "\351a\1\0\0\1\0\0\0\0\0\0\3www\6google\2de\0\0\1\0\1", 31, MSG_NOSIGNAL) = 31 22:18:11.834639 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}]) 22:18:11.937264 recvfrom(3, "\351a\201\200\0\1\0\5\0\0\0\0\3www\6google\2de\0\0\1\0\1\300"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 127 22:18:11.937510 poll([{fd=3, events=POLLOUT}], 1, 4896) = 1 ([{fd=3, revents=POLLOUT}]) DNS system is an old Zyxel router. I have IPv6 disabled and nscd disabled. I see the same timeouts with other network programs, in particular no difference between firefox and e.g. curl and wget. This makes the surfing experience with 11.3 very cumbersome. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c1
--- Comment #1 from Martin Wilck
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c2
--- Comment #2 from Martin Wilck
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c3
Petr Baudis
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c4
--- Comment #4 from Martin Wilck
Thanks for the report, but why are you adding the other poor 18 people to Cc?
I just cloned the bug, assuming the cc list members were still interested. Apologies to those who aren't any more.
The simplest workaround is to add 'options single-request' to /etc/resolv.conf. Can you please verify that it fixes the problem for you?
Coolo, do you think it is worth mentioning it again in the release notes?
Please find a way to document it in a place that is easy to find. I (not having used OpenSUSE with my router at home for some time) found it pretty hard to find information (for example, a search for DNS at wiki.opensuse.org doesn't reveal useful results). 'options single-request' definitely slipped my attention. Btw, how can that option be used together with NetworkManager? If yes, how? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c5
--- Comment #5 from Martin Wilck
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c
Martin Wilck
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c6
--- Comment #6 from Martin Wilck
http://bugzilla.novell.com/show_bug.cgi?id=618050
http://bugzilla.novell.com/show_bug.cgi?id=618050#c7
--- Comment #7 from Teruel de Campo MD
https://bugzilla.novell.com/show_bug.cgi?id=618050
https://bugzilla.novell.com/show_bug.cgi?id=618050#c8
Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=618050
https://bugzilla.novell.com/show_bug.cgi?id=618050#c9
--- Comment #9 from Petr Baudis
participants (1)
-
bugzilla_noreply@novell.com