Subject: RE: c-ares question: improper DNS server queried?

RE: c-ares question: improper DNS server queried?

From: Bert Belder <bertbelder_at_gmail.com>
Date: Wed, 29 Aug 2012 19:52:01 +0200

> We have a customer that is complaining that (somehow) c-ares is getting
> configuration information for DNS servers from disabled interfaces. I should
> specify the customer is on Windows.
>
> I don't really see how this is possible as the GetAdaptersAddresses and
> associated functions are not supposed to return information about disabled
> interfaces. And I tested those and it seems OK. But perhaps I missed
> something.
>
> So I'm looking for some ideas about how this could happen.

This patch should probably fix it.

However, this patch doesn't address the more general problem that the DNS server list is never refreshed. The DNS list can still become "incorrect" when an adapter is enabled/disabled/reconfigured while your program is running.

- Bert

Received on 2012-08-29