"mame (Yusuke Endoh) via ruby-core" <ruby-core(a)ml.ruby-lang.org> wrote:
Feature #19430: Contribution wanted: DNS lookup by
c-ares library
https://bugs.ruby-lang.org/issues/19430
### Alternative approaches
I prefer to avoid overhead from using threads for DNS lookup, so
I dislike getaddrinfo_a || (getaddrinfo + pthread), too.
It would be ideal if we could try and evaluate both
approaches. But my current impression is that using c-ares is
the quickest and best compromise.
What about resolv.rb? I don't believe CPU/memory use in DNS
lookup is a bottleneck for most users (network latency is);
and prefer motivating improvements in Ruby VM + socket ext
instead of linking against another C library.