mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
fix ptr nxdomain response and test (#1524)
This commit is contained in:
committed by
John Belamaric
parent
ca5097ca13
commit
caf2553d7a
@@ -18,6 +18,9 @@ func (k *Kubernetes) Reverse(state request.Request, exact bool, opt plugin.Optio
|
||||
}
|
||||
|
||||
records := k.serviceRecordForIP(ip, state.Name())
|
||||
if len(records) == 0 {
|
||||
return records, errNoItems
|
||||
}
|
||||
return records, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user