mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/kubernetes: check for bare zone query (#1692)
* check for bare zone query * check for bare type query
This commit is contained in:
@@ -273,6 +273,9 @@ func (k *Kubernetes) Records(state request.Request, exact bool) ([]msg.Service,
|
||||
if e != nil {
|
||||
return nil, e
|
||||
}
|
||||
if r.podOrSvc == "" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if dnsutil.IsReverse(state.Name()) > 0 {
|
||||
return nil, errNoItems
|
||||
|
||||
Reference in New Issue
Block a user