Hi
I noticed that the 'ARES_ENODATA Response' is not in line with RFC 2308 - Negative Caching of DNS Queries.
According that RFC next algorithm should apply:
IF RCODE = 0
AND
ANSWER SECTION = Empty
AND
( AUTHORITY SECTION = Empty OR AUTHORITY SECTION contains SOA Record )
THEN
NO DATA
Ref: RFC 2308, Chapter 2.2, paragraph 4
And currently the following is implemented:
switch (rcode)
{
case NOERROR:
status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA;
break;
Or do I overlook something?
If my interpretation is correct, could this be taken into account for a next C-Ares version?
Thank you.
Received on 2011-08-23