plugin/kubernetes: check for bare zone query (#1692)
* check for bare zone query * check for bare type query
This commit is contained in:
parent
9a7e487a5a
commit
51e1442bd9
5 changed files with 49 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue