public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts @ 2012-08-21 21:49 law at redhat dot com 2012-08-22 4:21 ` [Bug network/14505] " tore at fud dot no ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: law at redhat dot com @ 2012-08-21 21:49 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 Bug #: 14505 Summary: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: network AssignedTo: unassigned@sourceware.org ReportedBy: law@redhat.com Classification: Unclassified When looking a host name using getaddrinfo() with AI_ADDRCONFIG from an IPv6-only host, IN A queries are sent to the DNS server. According to RFC 3493, they should not. Steps to Reproduce: 1. Ensure the system is IPv6-only (it is optional remove 127.0.0.1/8 from the loopback interface, as it is ignored by getaddrinfo() for the purposes of determining whether or not the system has IPv4 connectivity or not). My test system gives the following output: [tore@laptop ~]$ ip -4 address list; ip -4 route list 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo [tore@laptop ~]$ 2. Ensure the system has a working IPv6 DNS server configured in /etc/resolv.conf, "echo nameserver 2001:4860:4860::8888 > /etc/resolv.conf" should do the trick. 3. Download and compile my getaddrinfo() test program from http://fud.no/gai.c (or use any other getaddrinfo() test program that can be made to use AI_ADDRCONFIG): "wget -O - http://fud.no/gai.c | gcc -x c -o gai -" 4. Start a tcpdump to inspect DNS server traffic: "tcpdump -i any -n port 53" 5. Resolve a host name using getaddrinfo() w/AI_ADDRCONFIG, e.g. "./gai -ac www.ripe.net" Actual results: The tcpdump process reports queries being made for both A and AAAA resource records: 11:16:00.685198 IP6 2a02:c0:1002:101:c449:7c3d:76b6:bbd1.48007 > 2001:4860:4860::8888.domain: 44105+ A? www.ripe.net. (30) 11:16:00.685235 IP6 2a02:c0:1002:101:c449:7c3d:76b6:bbd1.48007 > 2001:4860:4860::8888.domain: 35929+ AAAA? www.ripe.net. (30) 11:16:00.727253 IP6 2001:4860:4860::8888.domain > 2a02:c0:1002:101:c449:7c3d:76b6:bbd1.48007: 44105 1/0/0 A 193.0.6.139 (46) 11:16:00.727278 IP6 2001:4860:4860::8888.domain > 2a02:c0:1002:101:c449:7c3d:76b6:bbd1.48007: 35929 1/0/0 AAAA 2001:67c:2e8:22::c100:68b (58) Expected results: Only an AAAA record query should have been made; AI_ADDRCONFIG should have suppressed the A queries. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com @ 2012-08-22 4:21 ` tore at fud dot no 2012-08-22 16:35 ` law at redhat dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: tore at fud dot no @ 2012-08-22 4:21 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 Tore Anderson <tore at fud dot no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tore at fud dot no -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com 2012-08-22 4:21 ` [Bug network/14505] " tore at fud dot no @ 2012-08-22 16:35 ` law at redhat dot com 2012-08-22 17:43 ` law at redhat dot com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: law at redhat dot com @ 2012-08-22 16:35 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 --- Comment #1 from law at redhat dot com 2012-08-22 16:35:18 UTC --- Created attachment 6599 --> http://sourceware.org/bugzilla/attachment.cgi?id=6599 Potential fix -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com 2012-08-22 4:21 ` [Bug network/14505] " tore at fud dot no 2012-08-22 16:35 ` law at redhat dot com @ 2012-08-22 17:43 ` law at redhat dot com 2012-08-22 19:19 ` psimerda at redhat dot com ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: law at redhat dot com @ 2012-08-22 17:43 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 law at redhat dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from law at redhat dot com 2012-08-22 17:43:08 UTC --- Attached patch was checked in as 8479f23aa1d5e5477a37f46823856bdafaedfa46 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com ` (2 preceding siblings ...) 2012-08-22 17:43 ` law at redhat dot com @ 2012-08-22 19:19 ` psimerda at redhat dot com 2012-12-06 7:04 ` gaofeng at cn dot fujitsu.com 2014-06-17 5:55 ` fweimer at redhat dot com 5 siblings, 0 replies; 7+ messages in thread From: psimerda at redhat dot com @ 2012-08-22 19:19 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 Pavel Šimerda <psimerda at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |psimerda at redhat dot com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com ` (3 preceding siblings ...) 2012-08-22 19:19 ` psimerda at redhat dot com @ 2012-12-06 7:04 ` gaofeng at cn dot fujitsu.com 2014-06-17 5:55 ` fweimer at redhat dot com 5 siblings, 0 replies; 7+ messages in thread From: gaofeng at cn dot fujitsu.com @ 2012-12-06 7:04 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=14505 Gao feng <gaofeng at cn dot fujitsu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gaofeng at cn dot | |fujitsu.com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug network/14505] AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com ` (4 preceding siblings ...) 2012-12-06 7:04 ` gaofeng at cn dot fujitsu.com @ 2014-06-17 5:55 ` fweimer at redhat dot com 5 siblings, 0 replies; 7+ messages in thread From: fweimer at redhat dot com @ 2014-06-17 5:55 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=14505 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-17 5:55 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-21 21:49 [Bug network/14505] New: AI_ADDRCONFIG does not suppress IN A lookups from IPV6-only hosts law at redhat dot com 2012-08-22 4:21 ` [Bug network/14505] " tore at fud dot no 2012-08-22 16:35 ` law at redhat dot com 2012-08-22 17:43 ` law at redhat dot com 2012-08-22 19:19 ` psimerda at redhat dot com 2012-12-06 7:04 ` gaofeng at cn dot fujitsu.com 2014-06-17 5:55 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).