Date: Sat, 11 May 2002 15:53:31 -0700 From: Peter Haight <peterh@sapros.com> To: hackers@freebsd.org Subject: gethostbyname2 and AF_INET6 Message-ID: <200205112253.g4BMrVUn041734@wartch.sapros.com>
next in thread | raw e-mail | index | archive | help
Recently mozilla has been really slow resolving some DNS queries. I tracked this down to a call to gethostbyname2. For some addresses (e.g. 'www.vanguard.com'), gethostbyname2 with AF_INET6 will fail and takes more than a minute. I verified this with my own short program that does nothing but call gethostbyname2. I've attached a tcpdump of two DNS lookups. One is against 'www.vanguard.com' which takes about a minute and thirty seconds to come back with an 'Host name lookup failure'. The second log is against 'www.google.com' and it returns almost immediately with 'No address associated with name'. Can someone explain to me what's going on? Thanks. --- Log of gethostbyname2('www.vanguard.com', AF_INET6) --- 15:43:20.359250 255.128.174.zip > 0.0.zip: at-#6 25 15:43:21.033482 talri.sapros.com.1640 > wartch.sapros.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:21.358839 talri.sapros.com.1641 > wartch.sapros.com.domain: 42707+ PTR? 1.1.10.10.in-addr.arpa. (40) 15:43:21.359253 wartch.sapros.com.domain > talri.sapros.com.1641: 42707* 1/1/1 PTR[|domain] 15:43:21.359618 talri.sapros.com.1642 > wartch.sapros.com.domain: 42708+ PTR? 9.1.10.10.in-addr.arpa. (40) 15:43:21.359965 wartch.sapros.com.domain > talri.sapros.com.1642: 42708* 1/1/1 PTR[|domain] 15:43:21.408548 255.128.174.zip > 0.0.zip: at-#6 25 15:43:22.458620 255.128.174.zip > 0.0.zip: at-#6 25 15:43:24.258444 0:40:1:80:22:d6 > Broadcast sap e0 ui/C >>> Unknown IPX Data: (79 bytes) [000] FF FF 00 60 00 04 00 00 00 00 FF FF FF FF FF FF ...`.... ........ [010] 04 52 00 00 00 00 00 40 01 80 22 D6 04 52 00 02 .R.....@ .."..R.. [020] 55 AA 5A 4F 54 2D 50 53 38 30 32 32 44 36 00 00 U.ZOT-PS 8022D6.. [030] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ [040] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ....... len=97 ffff 0060 0004 0000 0000 ffff ffff ffff 0452 0000 0000 0040 0180 22d6 0452 0002 55aa 5a4f 542d 5053 3830 3232 4436 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00 15:43:26.037875 talri.sapros.com.1643 > mxrelay.lanminds.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:26.358016 talri.sapros.com.1644 > wartch.sapros.com.domain: 42709+ PTR? 6.88.25.208.in-addr.arpa. (42) 15:43:26.358693 wartch.sapros.com.domain > talri.sapros.com.1644: 42709 1/4/4 PTR[|domain] 15:43:26.922809 wartch.sapros.com.11512 > talri.sapros.com.1074: . 1417795364:1417795365(1) ack 1842336180 win 33304 <nop,nop,timestamp 61901189 1161651> (DF) 15:43:26.922873 talri.sapros.com.1074 > wartch.sapros.com.11512: . ack 0 win 0 <nop,nop,timestamp 1164275 61901189> (DF) 15:43:31.047974 talri.sapros.com.1645 > ns2.lmi.net.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:31.358121 talri.sapros.com.1646 > wartch.sapros.com.domain: 42710+ PTR? 5.64.25.208.in-addr.arpa. (42) 15:43:31.359089 wartch.sapros.com.domain > talri.sapros.com.1646: 42710 1/3/2 PTR[|domain] 15:43:36.058129 talri.sapros.com.1647 > wartch.sapros.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:37.358336 talri.sapros.com.1648 > wartch.sapros.com.domain: 42711+ PTR? 47.203.186.198.in-addr.arpa. (45) 15:43:37.360077 wartch.sapros.com.domain > talri.sapros.com.1648: 42711 1/3/0 (149) 15:43:39.068217 talri.sapros.com.1649 > mxrelay.lanminds.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:42.078303 talri.sapros.com.nkd > ns2.lmi.net.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:45.088393 talri.sapros.com.shiva_confsrvr > wartch.sapros.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:51.098565 talri.sapros.com.xnmp > mxrelay.lanminds.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:43:53.163592 wartch.sapros.com.11512 > talri.sapros.com.1074: . 0:1(1) ack 1 win 33304 <nop,nop,timestamp 61903813 1164275> (DF) 15:43:53.163683 talri.sapros.com.1074 > wartch.sapros.com.11512: . ack 0 win 0 <nop,nop,timestamp 1166899 61903813> (DF) 15:43:57.108743 talri.sapros.com.1653 > ns2.lmi.net.domain: 20502+ AAAA? www.vanguard.com. (34) 15:44:03.118926 talri.sapros.com.1654 > wartch.sapros.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:44:16.129309 talri.sapros.com.1655 > mxrelay.lanminds.com.domain: 20502+ AAAA? www.vanguard.com. (34) 15:44:19.404375 wartch.sapros.com.11512 > talri.sapros.com.1074: . 0:1(1) ack 1 win 33304 <nop,nop,timestamp 61906437 1166899> (DF) 15:44:19.404469 talri.sapros.com.1074 > wartch.sapros.com.11512: . ack 0 win 0 <nop,nop,timestamp 1169523 61906437> (DF) 15:44:26.016010 255.128.174.zip > 0.0.zip: at-#6 25 15:44:26.765395 0:40:1:80:22:d6 > Broadcast sap e0 ui/C >>> Unknown IPX Data: (79 bytes) [000] FF FF 00 60 00 04 00 00 00 00 FF FF FF FF FF FF ...`.... ........ [010] 04 52 00 00 00 00 00 40 01 80 22 D6 04 52 00 02 .R.....@ .."..R.. [020] 55 AA 5A 4F 54 2D 50 53 38 30 32 32 44 36 00 00 U.ZOT-PS 8022D6.. [030] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ [040] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ....... len=97 ffff 0060 0004 0000 0000 ffff ffff ffff 0452 0000 0000 0040 0180 22d6 0452 0002 55aa 5a4f 542d 5053 3830 3232 4436 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00 15:44:27.065572 255.128.174.zip > 0.0.zip: at-#6 25 15:44:28.115504 255.128.174.zip > 0.0.zip: at-#6 25 15:44:29.139691 talri.sapros.com.1656 > ns2.lmi.net.domain: 20502+ AAAA? www.vanguard.com. (34) 15:44:42.150151 talri.sapros.com.1657 > wartch.sapros.com.domain: 20503+ AAAA? www.vanguard.com.sapros.com. (45) 15:44:42.150567 wartch.sapros.com.domain > talri.sapros.com.1657: 20503 NXDomain* 0/1/0 (93) 15:44:45.645131 wartch.sapros.com.11512 > talri.sapros.com.1074: . 0:1(1) ack 1 win 33304 <nop,nop,timestamp 61909061 1169523> (DF) 15:44:45.645224 talri.sapros.com.1074 > wartch.sapros.com.11512: . ack 0 win 0 <nop,nop,timestamp 1172147 61909061> (DF) 15:44:56.015473 wartch.sapros.com.domain > talri.sapros.com.1640: 20502 ServFail 0/0/0 (34) 15:44:56.015538 talri.sapros.com > wartch.sapros.com: icmp: talri.sapros.com udp port 1640 unreachable --- Log of gethostbyname2('www.google.com', AF_INET6) --- 15:48:35.152884 talri.sapros.com.netview-aix-4 > wartch.sapros.com.domain: 33564+ AAAA? www.google.com. (32) 15:48:35.186321 wartch.sapros.com.domain > talri.sapros.com.netview-aix-4: 33564* 0/1/0 (82) 15:48:35.186712 talri.sapros.com.netview-aix-5 > wartch.sapros.com.domain: 33565+ AAAA? www.google.com.sapros.com. (43) 15:48:35.187067 wartch.sapros.com.domain > talri.sapros.com.netview-aix-5: 33565 NXDomain* 0/1/0 (91) 15:48:35.417699 talri.sapros.com.netview-aix-6 > wartch.sapros.com.domain: 36299+ PTR? 1.1.10.10.in-addr.arpa. (40) 15:48:35.418087 wartch.sapros.com.domain > talri.sapros.com.netview-aix-6: 36299* 1/1/1 PTR[|domain] 15:48:35.418439 talri.sapros.com.netview-aix-7 > wartch.sapros.com.domain: 36300+ PTR? 9.1.10.10.in-addr.arpa. (40) 15:48:35.418803 wartch.sapros.com.domain > talri.sapros.com.netview-aix-7: 36300* 1/1/1 PTR[|domain] 15:48:36.792850 0:40:1:80:22:d6 > Broadcast sap e0 ui/C >>> Unknown IPX Data: (79 bytes) [000] FF FF 00 60 00 04 00 00 00 00 FF FF FF FF FF FF ...`.... ........ [010] 04 52 00 00 00 00 00 40 01 80 22 D6 04 52 00 02 .R.....@ .."..R.. [020] 55 AA 5A 4F 54 2D 50 53 38 30 32 32 44 36 00 00 U.ZOT-PS 8022D6.. [030] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ [040] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ....... len=97 ffff 0060 0004 0000 0000 ffff ffff ffff 0452 0000 0000 0040 0180 22d6 0452 0002 55aa 5a4f 542d 5053 3830 3232 4436 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205112253.g4BMrVUn041734>