Adding config params :bindhost and :bindhost6 to allow specifying IPv4 and IPv6 (respectively) IPs for outbound query UDP and TCP sockets to bind to when desired on hosts with multiple IP addresses. This is only LIGHTLY tested and has worked for me. I do NOT know if this is the preferred method for controlling the source IP for outbound queries, but it does what I need.
Adding config params :bindhost and :bindhost6 to allow specifying IPv4 and IPv6 (respectively) IPs for outbound query UDP and TCP sockets to bind to when desired on hosts with multiple IP addresses. This is only LIGHTLY tested and has worked for me. I do NOT know if this is the preferred method for controlling the source IP for outbound queries, but it does what I need.
This addresses my question posted here: https://github.com/ruby/resolv/issues/3