Archive Index This month's Index

Subject: Re: Intended CNAME query behaviour

Re: Intended CNAME query behaviour

From: Brad House <>
Date: Tue, 25 Feb 2020 07:08:57 -0500

Replying on #303 on GitHub.

On 2/24/20 6:38 PM, Thomas Walton wrote:
> Hello,
> 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 in 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.
> Regards,
> Thomas
Received on 2020-02-25