Archive Index This month's Index

Subject: Re: Binding to local IP and/or network device.

Re: Binding to local IP and/or network device.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 May 2010 12:34:30 +0200 (CEST)

On Tue, 18 May 2010, Ben Greear wrote:

> We do a lot of work on multi-homed machines, and I'd like to be able to
> specify the source IP address for outgoing DNS requests generated by libcurl
> logic.
>
> It appears that this will not be too hard to add to c-ares, probably in the
> configure_socket() method in ares_process.c
>
> Before I start making changes, I just want to make sure that no one is
> currently working on this.

It should be fairly easy, yes, and I think it would be a welcomed addition.

In case of need, I'm sure you can find inspiration to the actual code from the
curl source code.

-- 
  / daniel.haxx.se
Received on 2010-05-19