mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
plugin/file: optimize cname get rr by type (#5080)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
@@ -366,7 +366,7 @@ Redo:
|
||||
goto Redo
|
||||
}
|
||||
|
||||
targets := rrutil.CNAMEForType(elem.All(), qtype)
|
||||
targets := elem.Type(qtype)
|
||||
if len(targets) > 0 {
|
||||
rrs = append(rrs, targets...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user