wininet: let automated testers force all DNS lookups to return localhost

Dan Kegel dank at kegel.com
Fri Oct 31 10:39:04 CDT 2008


On Fri, Oct 31, 2008 at 8:11 AM, Henri Verbeet <hverbeet at gmail.com> wrote:
> 2008/10/31 James Mckenzie <jjmckenzie51 at earthlink.net>:
>> This would not work on Macs as /etc/hosts is locked to admins only and would be a problem to implement.
>>
> I don't see how that's a problem, or how that's different from eg. Linux.
>
> More on-topic, I don't think it would be hard to do some LD_PRELOAD
> hacks on getaddrinfo(), gethostbyname(), and whatever else is
> appropriate.

How would we do this on Windows?   (We need the
winetest results to be reliable, too.)
That was the main reason I didn't go for LD_PRELOAD...
I guess we do some sort of DLL injection, but I haven't done
it personally before.
- Dan



More information about the wine-devel mailing list