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
|
@ -35,6 +35,10 @@ func parseRequest(state request.Request) (r recordRequest, err error) {
|
|||
// Federations are handled in the federation plugin. And aren't parsed here.
|
||||
|
||||
base, _ := dnsutil.TrimZone(state.Name(), state.Zone)
|
||||
// return NODATA for apex queries
|
||||
if base == "" || base == Svc || base == Pod {
|
||||
return r, nil
|
||||
}
|
||||
segs := dns.SplitDomainName(base)
|
||||
|
||||
r.port = "*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue