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

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

From: David Stuart <dstuart_at_counterpath.com>
Date: Fri, 31 Aug 2012 11:37:57 -0400

Hi Bert,

Your second comment is kind of interesting. What do you mean by the "DNS
server list is never refreshed"? Does it mean that c-ares needs to be
re-initialized somehow if an adapter is disabled or re-enabled?

On 12-08-29 01:52 PM, Bert Belder wrote:
>
>> 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
>
>

-- 
David Stuart, CounterPath
Email: dstuart (at) counterpath (dot) com
Phone: (613) 254-8886 x2234  Web: http://www.counterpath.com/
Address: 310 - 350 Terry Fox Drive, Kanata Ontario, K2K 2P5
Received on 2012-08-31