cURL / Mailing Lists / curl-library / Single Mail


ares "feature": Ignores responses from unexpected sources

From: Henrik Storner <>
Date: Wed, 8 Oct 2003 23:19:11 +0200

I just got bitten by this ... not sure if it is a bug in
ares or an error in some DNS setup around here, but here
is some info for the archives:

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'll try to figure out tomorrow why our dns server is acting
up like that - it doesn't seem right, it certainly breaks
lookups that go through a stateful firewall - but I thought
it would be good at least to have it documented somewhere.

Henrik Storner <> 
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-08