Error[8]: Undefined offset: 5, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 6, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 7, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 8, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 9, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 10, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 11, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 12, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,[+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 13, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl[+++][+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 14, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl[+++][+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 15, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl[+++]",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 16, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 17, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 18, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 19, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 20, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 21, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 22, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++][+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 23, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17[+++]virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 24, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl[+++][+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 25, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl[+++][+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 26, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl[+++]",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 27, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 28, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 29, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 30, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 31, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 32, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10[+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 33, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl[+++][+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 34, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl[+++][+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 35, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl[+++]0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 36, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f[+++][+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 37, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f[+++]"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 38, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 39, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 40, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 41, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 42, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 43, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710[+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 44, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl[+++][+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 45, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl[+++][+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 46, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl[+++]0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 47, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f[+++][+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 48, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f[+++]"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 49, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 50, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 51, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 52, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 53, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 54, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++][+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 55, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
[+++]virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 56, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl[+++][+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 57, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl[+++][+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 58, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl[+++]",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 59, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 60, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 61, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 62, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 63, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++][+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 64, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610[+++]virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 65, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl[+++][+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 66, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl[+++][+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 67, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl[+++]0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 68, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f[+++][+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 69, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f[+++]"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 70, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 71, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 72, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 73, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++][+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 74, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
[+++]slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 75, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg[+++][+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 76, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg[+++][+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 77, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg[+++]",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 78, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 79, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 80, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 81, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 82, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 83, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 84, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++][+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 85, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1[+++]slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 86, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg[+++][+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 87, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg[+++][+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 88, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg[+++]",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 89, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 90, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 91, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 92, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 93, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++][+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 94, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710[+++]slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 95, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg[+++][+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 96, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg[+++][+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 97, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg[+++]0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 98, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

[+++]

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 99, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

[+++]

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 100, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

[+++]

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 101, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

wget(破碎)

[+++]解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
linux – 5秒解析延迟_系统运维_内存溢出

linux – 5秒解析延迟

linux – 5秒解析延迟,第1张

概述使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟 这个strace输出是: 15:19:09.908234 uname({sys="Linux", node="openkvk", ...}) = 0 使用wget(curl,httplib2)我总是得到5秒的解析超时.当我做wget -4或wget -6时,这个问题没有到来.解决方案也可以使用挖掘或主机.使用/etc/resolv.conf中的“options timeout:2”可以降低延迟

这个strace输出是:

15:19:09.908234 uname({sys="linux",node="openkvk",...}) = 0 15:19:09.908413 socket(PF_INET,SOCK_DGRAM|SOCK_NONBLOCK,IPPROTO_IP) = 3 15:19:09.908482 connect(3,{sa_family=AF_INET,sin_port=htons(53),sin_addr=inet_addr("212.83.206.202")},16) = 0 15:19:09.908569 poll([{fd=3,events=PolLOUT}],1,0) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:09.908637 sendto(3,"F7
tcpdump -vvv  port 53 tcpdump: Listening on eth0,link-type EN10MB (Ethernet),capture size 65535 bytes 15:19:09.908687 IP (tos 0x0,ttl 64,ID 37830,offset 0,flags [DF],proto UDP (17),length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:09.908852 IP (tos 0x0,ID 37831,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:09.911081 IP (tos 0x0,ttl 59,ID 0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m21s] A 216.34.181.45 (46) 15:19:14.909246 IP (tos 0x0,ID 37832,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 3576!] 18151+ A? slashdot.org. (30) 15:19:14.911442 IP (tos 0x0,length 74)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18151 q: A? slashdot.org. 1/0/0 slashdot.org. [22m16s] A 216.34.181.45 (46) 15:19:14.911882 IP (tos 0x0,ID 37833,length 58)     93.157.136.242.38551 > 212.83.206.202.domain: [bad udp cksum 2876!] 18137+ AAAA? slashdot.org. (30) 15:19:14.913906 IP (tos 0x0,length 134)     212.83.206.202.domain > 93.157.136.242.38551: [udp sum ok] 18137 q: AAAA? slashdot.org. 0/1/0 ns: slashdot.org. [3m39s] SOA ns-1.ch3.sourceforge.com. hostmaster.corp.sourceforge.com. 2011101300 14400 1800 604800 3600 (106)
nameserver 2001:4018:3:12::202nameserver 2001:4018:1:64::202nameserver 212.83.206.202nameserver 213.207.64.202nameserver 8.8.8.8nameserver 8.8.4.4
23:41:10.428217 IP (tos 0x0,ID 11790,length 55)    93.157.136.242.51379 > 212.83.206.202.domain: [bad udp cksum e070!] 65414+ A? vircon.nl. (27)23:41:10.430442 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.51379: [udp sum ok] 65414 q: A? vircon.nl. 1/0/0 vircon.nl. [15h59m29s] A 31.193.104.52 (43)23:41:10.427920 socket(PF_INET,IPPROTO_IP) = 323:41:10.427982 connect(3,16) = 023:41:10.428095 poll([{fd=3,revents=PolLOUT}])23:41:10.428166 sendto(3,"76
23:40:13.577621 IP (tos 0x0,ID 20475,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:13.577786 IP (tos 0x0,ID 20476,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:13.579879 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [22h20m8s] A 31.193.104.52 (43)23:40:18.582490 IP (tos 0x0,ID 20477,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 16c!] 62764+ A? vircon.nl. (27)23:40:18.584709 IP (tos 0x0,length 71)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 62764 q: A? vircon.nl. 1/0/0 vircon.nl. [16h21s] A 31.193.104.52 (43)23:40:18.585163 IP (tos 0x0,ID 20478,length 55)    93.157.136.242.55276 > 212.83.206.202.domain: [bad udp cksum 9654!] 61847+ AAAA? vircon.nl. (27)23:40:18.587212 IP (tos 0x0,length 106)    212.83.206.202.domain > 93.157.136.242.55276: [udp sum ok] 61847 q: AAAA? vircon.nl. 0/1/0 ns: vircon.nl. [56m25s] SOA ns1.vircon.nl. hostmaster.vircon.nl. 2011120602 10800 3600 604800 86400 (78)23:40:13.577353 socket(PF_INET,IPPROTO_IP) = 323:40:13.577417 connect(3,16) = 023:40:13.577502 poll([{fd=3,revents=PolLOUT}])23:40:13.577572 sendto(3,"5,virconnl",0) = 2723:40:13.577667 poll([{fd=3,revents=PolLOUT}])23:40:13.577737 sendto(3,"17virconnl",0) = 2723:40:13.577892 poll([{fd=3,revents=PolliN}])23:40:13.580007 ioctl(3,[43]) = 023:40:13.580105 recvfrom(3,10virconnl0\f"...,[16]) = 4323:40:13.580229 poll([{fd=3,4997) = 0 (Timeout)23:40:18.582338 poll([{fd=3,revents=PolLOUT}])23:40:18.582433 sendto(3,0) = 2723:40:18.582535 poll([{fd=3,revents=PolliN}])23:40:18.584835 ioctl(3,[43]) = 023:40:18.584912 recvfrom(3,[16]) = 4323:40:18.585048 poll([{fd=3,revents=PolLOUT}])23:40:18.585117 sendto(3,0) = 2723:40:18.585300 poll([{fd=3,revents=PolliN}])23:40:18.587325 ioctl(3,[78]) = 023:40:18.587394 recvfrom(3,"1710virconnl0\f"...,2005,[16]) = 7823:40:18.587513 close(3)
virconnl",27,0) = 2723:41:10.428262 poll([{fd=3,revents=PolliN}])23:41:10.430572 ioctl(3,[43]) = 023:41:10.430651 recvfrom(3,"7610virconnl0\f"...,1024,[16]) = 4323:41:10.430774 close(3)
slashdotorg",30,MSG_NOSIGNAL,NulL,0) = 30 15:19:09.908735 poll([{fd=3,events=PolliN|PolLOUT}],5000) = 1 ([{fd=3,revents=PolLOUT}])15:19:09.908804 sendto(3,"F1slashdotorg",0) = 30 15:19:09.908884 poll([{fd=3,events=PolliN}],4999) = 1 ([{fd=3,revents=PolliN}]) 15:19:09.911230 ioctl(3,FIONREAD,[46]) = 0 15:19:09.911308 recvfrom(3,"F710slashdotorg0\f"...,2048,[16]) = 46 15:19:09.911445 poll([{fd=3,4997) = 0 (Timeout) 15:19:14.909096 poll([{fd=3,revents=PolLOUT}]) 15:19:14.909189 sendto(3,0) = 30 15:19:14.909292 poll([{fd=3,revents=PolliN}]) 15:19:14.911569 ioctl(3,[46]) = 0 15:19:14.911644 recvfrom(3,[16]) = 46 15:19:14.911772 poll([{fd=3,4997) = 1 ([{fd=3,revents=PolLOUT}]) 15:19:14.911837 sendto(3,0) = 30 15:19:14.912051 poll([{fd=3,revents=PolliN}]) 15:19:14.914034 ioctl(3,[106]) = 0

Tcpdump输出:

像dig / host这样的工具执行类似于使用wget -4或wget -6,即时,没有任何问题.

我已经分别尝试了以下每个服务器.

什么可能导致这种延迟?

请求的输出:
wget -4(作品)

wget(破碎)

解决方法 您的问题在 http://udrepper.livejournal.com/20948.html中描述,并且由IPv4和IPv6上的并行查找引起,该查找与某些DNS服务器和防火墙不兼容.

可以通过在/etc/resolv.conf中的选项中添加“single-request”来修复它,如上面提到的链接.

总结

以上是内存溢出为你收集整理的linux – 5秒解析延迟全部内容,希望文章能够帮你解决linux – 5秒解析延迟所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1036416.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存