mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
Kubernetes cleanup6 (#887)
* mw/kubernetes: handle dns.TypeNS better. * mw/kubernetes: cleanup typeNS replies a bit.
This commit is contained in:
@@ -25,7 +25,7 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M
|
||||
// otherwise delegate to the next in the pipeline.
|
||||
zone := middleware.Zones(k.Zones).Matches(state.Name())
|
||||
if zone == "" {
|
||||
if state.Type() != "PTR" {
|
||||
if state.QType() != dns.TypePTR {
|
||||
return middleware.NextOrFailure(k.Name(), k.Next, ctx, w, r)
|
||||
}
|
||||
// If this is a PTR request, and the request is in a defined
|
||||
|
||||
Reference in New Issue
Block a user