fn do_cname(
    zone: &Zone,
    qname: &Name,
    cname_rrset: &Rrset,
    rr_type: Type,
    response: &mut Writer,
) -> ProcessingResult<()> {
    // RFC 6604 § 2.1 reiterates RFC 1035: the AA bit is set based on
    // the first owner name in the answer section. Thus, the AA bit
    // should be set here.
    response.set_aa(true);
    response.add_answer_rrset(qname, cname_rrset)?;
    follow_cname_1(zone, qname, cname_rrset, rr_type, response, ArrayVec::new())
}
/// Follows a CNAME chain to produce an answer when there is CNAME RRset
/// present at QNAME.
///
/// At most [`MAX_CNAME_CHAIN_LEN`] links in a CNAME chain will be
/// processed before this gives up and signals to respond with SERVFAIL.
/// Additionally, loops in the chain will be detected and will trigger a
/// SERVFAIL.
Follows a CNAME chain to produce an answer when there is CNAME RRset
present at QNAME.

At most [`MAX_CNAME_CHAIN_LEN`] links in a CNAME chain will be
processed before this gives up and signals to respond with SERVFAIL.
Additionally, loops in the chain will be detected and will trigger a
SERVFAIL.
Follows a CNAME chain to produce an answer when there is CNAME RRset present at QNAME . At most [ ` MAX_CNAME_CHAIN_LEN ` ] links in a CNAME chain will be processed before this gives up and signals to respond with SERVFAIL . Additionally loops in the chain will be detected and will trigger a SERVFAIL .
fn do_cname(
    zone: &Zone,
    qname: &Name,
    cname_rrset: &Rrset,
    rr_type: Type,
    response: &mut Writer,
) -> ProcessingResult<()> {
    // RFC 6604 § 2.1 reiterates RFC 1035: the AA bit is set based on
    // the first owner name in the answer section. Thus, the AA bit
    // should be set here.
    response.set_aa(true);
    response.add_answer_rrset(qname, cname_rrset)?;
    follow_cname_1(zone, qname, cname_rrset, rr_type, response, ArrayVec::new())
}
fn do_cname ( zone : & Zone , qname : & Name , cname_rrset : & Rrset , rr_type : Type , response : & mut Writer , ) -> ProcessingResult < ( ) > { // RFC 6604 § 2.1 reiterates RFC 1035: the AA bit is set based on // the first owner name in the answer section. Thus, the AA bit // should be set here. response . set_aa ( true ) ; response . add_answer_rrset ( qname , cname_rrset ) ? ; follow_cname_1 ( zone , qname , cname_rrset , rr_type , response , ArrayVec :: new ( ) ) }
Follows a CNAME chain to produce an answer when there is CNAME RRset
present at QNAME.
Follows a CNAME chain to produce an answer when there is CNAME RRset present at QNAME .
zone
&Zone
qname
&Name
cname_rrset
&Rrset
rr_type
Type
response
&mut Writer
zone
&Zone
qname
&Name
cname_rrset
&Rrset
rr_type
Type
response
&mut Writer