ts wrote:

>>>>>> "P" == Paul Brannan <pbrannan / atdesk.com> writes:
> 
> P> I am mistaken).  Why doesn't Ruby call gethostbyname() or
> 
> pigeon% less socket.c
> [...]
> 
> /*
>  * NOTE: using gethostbyname() against AF_INET6 is a bad idea, as it
>  * does not initialize sin_flowinfo nor sin_scope_id properly.
>  */
> 
> [...]
> pigeon%
> 
> 
> Guy Decoux

Couldn't you simply check RES_USE_INT6 and call gethostbyname or 
gethostbyname2 as appropriate?  I'm looking at Stevens, "Unix Network 
Programming", p.240-249

Regards,

Dan