ruby / resolv

A thread-aware DNS resolver library written in Ruby
Other
37 stars 29 forks source link

Q: How do I bind queries to a specific IPv4 or IPv6 address? #3

Closed astounding closed 3 years ago

astounding commented 3 years ago

How can I bind the resolver to a specific IPv4 or IPv6 address on a multi-homed host for queries? Is there a configuration parameter for this? If this does not yet exist, may I request that feature?

astounding commented 3 years ago

I submitted pull request https://github.com/ruby/resolv/pull/4 that adds this feature. I do NOT know if it is the best solution, and the code is only LIGHTLY tested (i.e. it works for my personal requirements).