Remove redundant code (#8072)

Signed-off-by: Yang Jun <yang.jun22@zte.com.cn>
Signed-off-by: 杨军10092085 <yang.jun22@zte.com.cn>
This commit is contained in:
JUN YANG
2026-05-22 03:11:29 +08:00
committed by GitHub
parent 65d15af3a9
commit 3e762bc603
2 changed files with 1 additions and 9 deletions

View File

@@ -168,11 +168,6 @@ func (z *Zone) Lookup(ctx context.Context, state request.Request, qname string)
i++
}
// What does found and !shot mean - do we ever hit it?
if found && !shot {
return nil, nil, nil, ServerFailure
}
// Found entire name.
if found && shot {
if rrs := elem.Type(dns.TypeCNAME); len(rrs) > 0 && qtype != dns.TypeCNAME {