cURL / Mailing Lists / curl-library / Single Mail


Re: ares "feature": Ignores responses from unexpected sources

From: Daniel Stenberg <>
Date: Thu, 16 Oct 2003 17:15:07 +0200 (CEST)

On Wed, 8 Oct 2003, Henrik Storner wrote:

> I have a DNS server that accepts queries on one IP-address, but sends the
> answers with a different source-IP. A network trace says (IP's and
> domain-names changed):
> -> DNS C Internet Addr ?
> -> DNS R Internet Addr
> Note that the request is sent to, but the answer
> originates from
> The "standard" DNS lookup tools and libraries (nslookup, dig, libresolv)
> happily accept this and completes the name lookup. Ares doesn't - it appears
> to just hang waiting for a response (it doesn't even timeout, from what I
> can see).

I would say this is a bug. At least it should timeout,

If you're still able to repeat this "effect", can you dig into
ares_process.c:process_answer() and see what it does to discard to response
and possible how it can be patched?

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by: Giveback Program. hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here:
Received on 2003-10-16