mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
dont log error for non existant txt records (#2291)
This commit is contained in:
committed by
Miek Gieben
parent
cc82915f93
commit
d97b257f8d
@@ -100,7 +100,7 @@ func (k *Kubernetes) Services(state request.Request, exact bool, opt plugin.Opti
|
||||
|
||||
segs := dns.SplitDomainName(t)
|
||||
if len(segs) != 1 {
|
||||
return nil, fmt.Errorf("kubernetes: TXT query can only be for dns-version: %s", state.QName())
|
||||
return nil, nil
|
||||
}
|
||||
if segs[0] != "dns-version" {
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user