
または、、ubuntu
を使用すると、DNS 解決が非常に遅くなります...wget
curl
apt-get
root@815340a37f0e:/# time curl www.google.com
...
real 0m5.132s
user 0m0.006s
sys 0m0.003s
やるとnslookup
かなり速くなります。
root@815340a37f0e:/# time nslookup google.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 173.194.78.101
...
real 0m0.024s
user 0m0.010s
sys 0m0.005s
答え1
私たちも同じ問題を抱えていましたが、当社のハードウェアは IPv6 で動作が不安定になることが分かりました。
curl
次のようにして IPv4 を強制的に確認することもできます。
$ time curl -4 www.google.com
...
real 0m0.074s
user 0m0.011s
sys 0m0.000s
アップデート1:
Windowsホストシステム(Ubuntu 14.04がゲスト)で問題が発生しました。実際の解決策は、このページ。
を追加options single-request-reopen
し/etc/resolvconf/resolv.conf.d/base
て実行することsudo resolvconf -h
で、うまくいきました。
私は別の答えを見つけましたアスクブントゥそれはほぼ同じことを示唆しました。