Archive Index This month's Index

Subject: Intended CNAME query behaviour

Intended CNAME query behaviour

From: Thomas Walton <>
Date: Mon, 24 Feb 2020 23:38:23 +0000


I have created because c-ares
returns a SUCCESS status when it just receives a CNAME in response to a
query (with no A or AAAA name provided). I consider this to be a bug, and
clearly the test at
was supposed to check this, but the test is broken and doesn't work. When
the test is corrected, it fails. However, this then clashes with test
ParseAReplyJustCname, which is essentially testing the same case and
checking for a different result.

However, there is a comment in the code implying that this behaviour of
returning a success for a CNAME only lookup is intentional. This was added
many years ago.

What is the intended behaviour of c-ares in cases like this? How should
CNAME queries be handled? Is there even a good way of reconciling these
two requirements?

I am happy to try to write a patch for this issue, but I do not want to
break existing useful behaviour.


Received on 2020-02-25